Changed FF in std. Started test (spoiler: is not working)
This commit is contained in:
9
test/unit_tests/flipflop/run/prsim.out
Normal file
9
test/unit_tests/flipflop/run/prsim.out
Normal file
@ -0,0 +1,9 @@
|
||||
t.clk t.d t.q t.ff._qb t.ff._q_B t.ff.__clk t.ff._dl t.ff._clk
|
||||
[0] start test
|
||||
|
||||
[1] reset completed
|
||||
WRONG ASSERT: "t.q" has value 1 and not 0.
|
||||
[2] setting d to 1
|
||||
WRONG ASSERT: "t.q" has value 1 and not 0.
|
||||
[3] setting clk to 1
|
||||
[4] Finished
|
29
test/unit_tests/flipflop/run/test.prs
Normal file
29
test/unit_tests/flipflop/run/test.prs
Normal file
@ -0,0 +1,29 @@
|
||||
= "GND" "GND"
|
||||
= "Vdd" "Vdd"
|
||||
= "Reset" "Reset"
|
||||
"Reset"->"t._reset_B"-
|
||||
~("Reset")->"t._reset_B"+
|
||||
"t.ff._q_B"->"t.ff.q"-
|
||||
~"t.ff._q_B"->"t.ff.q"+
|
||||
"t.ff.clk"->"t.ff._clk"-
|
||||
~"t.ff.clk"->"t.ff._clk"+
|
||||
"t.ff._clk"->"t.ff.__clk"-
|
||||
~"t.ff._clk"->"t.ff.__clk"+
|
||||
"t.ff.reset"->"t.ff._Ro"-
|
||||
~"t.ff.reset"->"t.ff._Ro"+
|
||||
"t.ff.d"&"t.ff._clk"->"t.ff._dl"-
|
||||
~"t.ff.d"&~"t.ff.__clk"->"t.ff._dl"+
|
||||
"t.ff.reset"&"t.ff._qb"->"t.ff._q_B"-
|
||||
~"t.ff.reset"|~"t.ff._qb"->"t.ff._q_B"+
|
||||
after 0 "t.ff.__clk" & ~"t.ff._Ro" -> "t.ff._dl"-
|
||||
~"t.ff._clk" & "t.ff._Ro" -> "t.ff._dl"+
|
||||
after 0 "t.ff.__clk" & ~"t.ff.reset" -> "t.ff._qb"-
|
||||
~"t.ff._clk" & "t.ff.reset" -> "t.ff._qb"+
|
||||
after 0 "t.ff._clk" & ~"t.ff.reset" -> "t.ff._qb"-
|
||||
~"t.ff.__clk" & "t.ff.reset" -> "t.ff._qb"+
|
||||
= "Reset" "t.ff.reset"
|
||||
= "Vdd" "t.ff.vdd"
|
||||
= "GND" "t.ff.vss"
|
||||
= "t.q" "t.ff.q"
|
||||
= "t.clk" "t.ff.clk"
|
||||
= "t.d" "t.ff.d"
|
Reference in New Issue
Block a user