-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple triggers on flops #42
Comments
@mkorbel1 Is it possible to support negative edge trigger as well? rohd/lib/src/modules/conditional.dart Line 222 in eb4fd66
|
@wswongat it wouldn't be too hard to add that, but I figured it wasn't really needed as a separate feature since you could always just use the posedge of an inverted signal, for example: FF(clk, [...]); //posedge of clk
FF(~clk, [...]); // negedge of clk Do you think that meets your needs or can you elaborate why you think a separate negedge trigger would be beneficial beyond this? |
@mkorbel1 Your suggestion looks good. Looks like we need to find some way to support multiple triggers on flops |
Is your feature request related to a problem? Please describe.
Support multiple triggers for flops, like in SystemVerilog:
Describe the solution you'd like
The
FF
andFlipFlop
should have a syntax that accepts a list of signals instead of a singleclk
signal.Describe alternatives you've considered
Using something like
clk | reset
is insufficient because there could be a rising edge of reset during a clock high period.The text was updated successfully, but these errors were encountered: