mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
added a couple more loops to the test
--HG-- branch : mep107
This commit is contained in:
parent
fc36a503fb
commit
36a72ff813
@ -6,9 +6,9 @@ from myhdl.conversion import analyze,verify
|
|||||||
|
|
||||||
class Intf(object):
|
class Intf(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.x = Signal(intbv(1,min=-111,max=111))
|
self.x = Signal(intbv(1,min=-1111,max=1111))
|
||||||
self.y = Signal(intbv(2,min=-211,max=211))
|
self.y = Signal(intbv(2,min=-2211,max=2211))
|
||||||
self.z = Signal(intbv(3,min=-311,max=311))
|
self.z = Signal(intbv(3,min=-3311,max=3311))
|
||||||
|
|
||||||
def m_modify(clock,reset,a):
|
def m_modify(clock,reset,a):
|
||||||
|
|
||||||
@ -79,11 +79,12 @@ def c_testbench():
|
|||||||
yield delay(23)
|
yield delay(23)
|
||||||
reset.next = True
|
reset.next = True
|
||||||
yield delay(33)
|
yield delay(33)
|
||||||
for ii in range(7):
|
for ii in range(17):
|
||||||
print("a: x=%d y=%d z=%d"%(a.x,a.y,a.z))
|
print("a: x=%d y=%d z=%d"%(a.x,a.y,a.z))
|
||||||
print("b: x=%d y=%d z=%d"%(b.x,b.y,b.z))
|
print("b: x=%d y=%d z=%d"%(b.x,b.y,b.z))
|
||||||
print("c: x=%d y=%d z=%d"%(c.x,c.y,c.z))
|
print("c: x=%d y=%d z=%d"%(c.x,c.y,c.z))
|
||||||
yield clock.posedge
|
yield clock.posedge
|
||||||
|
|
||||||
raise StopSimulation
|
raise StopSimulation
|
||||||
|
|
||||||
return tb_dut,tb_clk,tb_stim
|
return tb_dut,tb_clk,tb_stim
|
||||||
|
Loading…
x
Reference in New Issue
Block a user