Changed FF in std. Started test (spoiler: is not working)
This commit is contained in:
21
test/unit_tests/flipflop/test.prsim
Normal file
21
test/unit_tests/flipflop/test.prsim
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
set t.d 0
|
||||
set t.clk 0
|
||||
set Reset 0
|
||||
cycle
|
||||
assert t.q 0
|
||||
system "echo '[0] start test'"
|
||||
set Reset 1
|
||||
cycle
|
||||
status X
|
||||
mode run
|
||||
system "echo '[1] reset completed'"
|
||||
system "echo '[2] setting d to 1'"
|
||||
set t.clk 1
|
||||
cycle
|
||||
assert t.q 0
|
||||
system "echo '[3] setting clk to 1'"
|
||||
set t.clk 1
|
||||
cycle
|
||||
assert t.q 1
|
||||
system "echo '[4] Finished'"
|
Reference in New Issue
Block a user