You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice to have when work as a when :: Bit 1 -> Action () -> Module () on top of just when :: Bit 1 -> Action () -> Action (). I'd like to write something like
top =do
cycleCount ::Reg (Bit8) <- makeReg 0-- Increment cycleCount on every cycle
always do
cycleCount <== cycleCount.val +1-- Terminate simulation when count reaches 20
when (cycleCount.val .==.20) do
display "Finished"
finish
instead of
top =do
cycleCount ::Reg (Bit8) <- makeReg 0
always do-- Increment cycleCount on every cycle
cycleCount <== cycleCount.val +1-- Terminate simulation when count reaches 20
when (cycleCount.val .==.20) do
display "Finished"
finish
or
top =do
cycleCount ::Reg (Bit8) <- makeReg 0-- Increment cycleCount on every cycle
always do
cycleCount <== cycleCount.val +1-- Terminate simulation when count reaches 20
always do
when (cycleCount.val .==.20) do
display "Finished"
finish
The text was updated successfully, but these errors were encountered:
I think I prefer the same name but I don't know how likely it would be for the type not to be inferred correctly... <troll>if only Action and Module where the same</troll>
I think it would be nice to have
when
work as awhen :: Bit 1 -> Action () -> Module ()
on top of justwhen :: Bit 1 -> Action () -> Action ()
. I'd like to write something likeinstead of
or
The text was updated successfully, but these errors were encountered: