GithubHelp home page GithubHelp logo

electronash / pcecdrom_verilator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dentnz/pcecdrom_verilator

2.0 2.0 0.0 48 KB

Scratchpad for some Verilog imitating the PC Engine emulator, Beetle. Simulated in Verilator

Verilog 54.57% C++ 45.43%

pcecdrom_verilator's Introduction

PCE Engine CD ROM - Verilog and Verilator

Requirements to compile and run the simulation

  • Linux (Windows users can use VirtualBox)
  • Docker

Compiling the Verilog and simulator

docker run --rm -v $(pwd):/data rweda/verilator "cd /data; verilator -Wall --cc pcecd_top.v --exe sim_main_pcecd.cpp; cd obj_dir; make -j -f Vpcecd_top.mk Vpcecd_top"

Running the simulator

./obj_dir/Vpcecd_top

From here you can type a character (or several) and press enter to advance the clock:

.................
Read from Reg: 0x4  CD_RESET         Expecting: 0x00
Read 0x4. dout = 0x00
Write to Reg:  0x4  CD_RESET         Data: 0x02
Write to 0x4. irq2_assert will be: 0x0
Read from Reg:  0x4  CD_RESET        Expecting: 0x02
Read 0x4. dout = 0x02
Write to Reg:  0x4  CD_RESET         Data: 0x00
Write to Reg:  0x2  INT_MASK         Data: 0x00
Write to 0x2. irq2_assert will be: 0x0
TBC: Write to Reg:  0xf  ADPCM_FADE          Data: 0x00
TBC: Write to Reg:  0xd  ADPCM_ADDR_CONT     Data: 0x80
TBC: Write to Reg:  0xd  ADPCM_ADDR_CONT     Data: 0x00
TBC: Write to Reg:  0xb  ADPCM_DMA_CONT      Data: 0x00
Read from Reg: 0x2  INT_MASK         Expecting: 0x00
Read 0x2. dout = 0x00
Write to Reg:  0x2  INT_MASK         Data: 0x00
Read 0x2. dout = 0x00
TBC: Write to Reg:  0xe  ADPCM_RATE         Data: 0x00
Read from Reg: 0x3  BRAM_LOCK        Expecting: 0x00
Read 0x3. dout = 0x00
bram_enabled = 0x0

Plan

Plan has changed, now using this code here as the guide for implementing this stuff:

https://github.com/TASVideos/BizHawk/blob/master/BizHawk.Emulation.Cores/Consoles/PC%20Engine/PCEngine.TurboCD.cs

pcecdrom_verilator's People

Contributors

electronash avatar

Stargazers

Timothy avatar Paolo Pisati avatar

Watchers

James Cloos avatar Paolo Pisati avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.