1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

verilog test

This commit is contained in:
jand 2007-06-28 20:34:19 +00:00
parent 8ac1ab0cff
commit 1ae2c2e9f5
5 changed files with 5 additions and 2 deletions

View File

@ -56,7 +56,7 @@ def bin2grayBench(width, bin2gray):
#print "B: " + bin(B, width) + "| G_v: " + bin(G_v, width)
#print bin(G, width)
#print bin(G_v, width)
print "%0d" % G
print "%d" % G
return stimulus, bin2gray_inst

View File

@ -172,6 +172,7 @@ def inc3(count, enable, clock, reset, n):
def clockGen(clock):
clock.next = 1
while 1:
yield delay(10)
clock.next = not clock

View File

@ -121,7 +121,7 @@ def IncBench(inc):
@instance
def clockgen():
clock.next = 0
clock.next = 1
for i in range(NR_CYCLES):
yield delay(10)
clock.next = not clock

View File

@ -136,6 +136,7 @@ def RamBench(ram, depth=128):
@instance
def clkgen():
clk.next = 1
while True:
yield delay(10)
clk.next = not clk

View File

@ -75,6 +75,7 @@ def RomBench(rom):
@instance
def clkgen():
clk.next = 1
while 1:
yield delay(10)
clk.next = not clk