actlib_dataflow_neuro/test/unit_tests/flipflop/test.prsim

22 lines
320 B
Plaintext
Raw Normal View History

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'"