Closed
Description
Motivation
Similar to how mux
creates a Mux
and returns the output.
Currently, to make a flop requires FlipFlop(clk, d).q
, but it would be nicer to write flop(clk, d)
to get the same thing.
Desired solution
Implement a new globally visible function like
Logic flop(clk, d) { ... }
which performs the same functionality as getting q
from a constructed FlipFlop
.
Alternatives considered
No response
Additional details
No response