unable to display fshow for tagVec

This commit is contained in:
Yehowshua Immanuel 2025-03-20 00:10:00 -04:00
parent 6359ab833d
commit ac48f5a4ad
3 changed files with 33 additions and 14 deletions

View file

@ -1,4 +1,15 @@
package Util((|>)) where
package Util((|>), simulate_for) where
(|>) :: (a -> b) -> a -> b
f |> x = f x;
f |> x = f x;
simulate_for :: (Bits a n, Arith a, Eq a) => Reg a -> Reg a -> Rules
simulate_for curr_cycle end_cycle =
rules
"count_cycle_rule": when True ==> action
curr_cycle := curr_cycle + 1
if curr_cycle == end_cycle
then
$finish
else
$display "cycle = " curr_cycle