Skip to content

Flip-flop issue in iVerilog synthesis. #692

Answered by logicmonkey
Butylochnik asked this question in Q&A
Discussion options

You must be logged in to vote

This is an issue with all synthesis tools that I have used over the years - and it isn't restricted to Verilog/SV - it's VHDL as well.

I can't remember the exact reason, but it's actually a latch inference problem. If you don't reset EVERYTHING in a "sequential process"/always_ff you will have a latch. So I agree with iVerilog's behaviour here.

I have seen in-house tools developed to detect such code, but I would expect the issue to be handled by most modern linting tools.

Based on experience - don't write code like this. If you really don't want to reset something, put it in another always_ff WITHOUT a reset and use another signal to assign at the clock edge.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Butylochnik
Comment options

Answer selected by Butylochnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants