Skip to content

Commit

Permalink
add in the 4004 Verilog simulation environment
Browse files Browse the repository at this point in the history
  • Loading branch information
pmonta committed Mar 30, 2011
1 parent c65dd8f commit 3a41ec6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions iverilog/4004/Makefile
@@ -0,0 +1,9 @@
VSRC = ../../verilog/{test_4004.v,chip_4004.v,clocks_4004.v,models.v,rom_4004.v}
VFLAGS = -Wall

test:
iverilog $(VFLAGS) -DW=6 -DMAXTICKS=10000000 -DQUARTERCYCLE=250 -I../../verilog $(VSRC)
./a.out -lxt2

clean:
rm -f a.out *.lxt
5 changes: 5 additions & 0 deletions iverilog/4004/test1.asm
@@ -0,0 +1,5 @@
ldm 3
xch 2
ldm 9
loop: add 2
jun loop
5 changes: 5 additions & 0 deletions iverilog/4004/test1.lst
@@ -0,0 +1,5 @@
D3 ldm 3
B2 xch 2
D9 ldm 9
82 loop: add 2
40 03 jun loop

0 comments on commit 3a41ec6

Please sign in to comment.