wordandahalf / XDN

A simple CPU written in Verilog based on the popular breadboard CPU made by Ben Eater

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XDN Logo


A simple CPU written in Verilog based on the popular breadboard CPU made by Ben Eater

Building

Requires verilator (I use 4.105 devel rev v4.104-13-g1e7c61b2) for turning the Verilog source into compilable C++. gtkwave is require for tracing. To build XDN, a simple make build can be used. To run it, use make run. make trace runs the binary and opens GTKWave with the generated VCD.

Programming

The ISA is not final--opcodes are now a byte long (compared to a nybble in Ben Eater's design) and I would like to research a sane way of encoding operands. The code executed on startup can be found at data/ram.hex. Currently it has the same program that Ben uses to demo the breadboard, adjusted to have byte-long opcodes.

About

A simple CPU written in Verilog based on the popular breadboard CPU made by Ben Eater

License:MIT License


Languages

Language:Verilog 92.4%Language:Makefile 4.1%Language:C++ 3.5%