We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eda162c commit a9b7bd8Copy full SHA for a9b7bd8
part_2/Example7.hs
@@ -40,15 +40,18 @@ topEntity instr = mealy stack5 (repeat 0 :: SMem, 0 :: SP) instr
40
instrs_vec = (Push 3 :> Push 5 :> PopPush 6 :> Pop :> Pop :> Nil)
41
instrs = toList instrs_vec
42
43
--- Synchronous logic simulation and testbench generation
+-- Synchronous logic simulation
44
+test_sync = sampleN 5 $ simulate_lazy topEntity instrs
45
+
46
+-- Synchronous logic testbench generation
47
48
--testInput :: Signal SInstr
49
testInput = stimuliGenerator instrs_vec
50
51
--expectedOutput :: Signal Value -> Signal Bool
52
expectedOutput = outputVerifier (0 :> 0 :> 5 :> 6 :> 3 :> Nil)
53
-test_sync = sampleN 5 $ expectedOutput $ topEntity testInput
54
+test_sync_tb = sampleN 5 $ expectedOutput $ topEntity testInput
55
56
-- Combinatorial logic simulation
57
0 commit comments