For priority case, if all the conditions are not listed, unlisted case items are don’t cares, and can be optimized away.
For case, if all the conditions are not listed, it will synthesize into a latch.
For priority case, if all the conditions are not listed, unlisted case items are don’t cares, and can be optimized away.
For case, if all the conditions are not listed, it will synthesize into a latch.
I dont think that is true. Priority case will tell simulation and synthesis tools to generate priority encoded logic. However, if no case matches, you will encounter a violation in simulation:
RT Warning: No condition matches in 'priority case' statement.
However, if you use unique case statement, if you do not add a case condition it will not add latch. For example in case of a 3:1 MUX.
Code Verilog - [expand]
1
2
3
4
5
6
7
always_combbeginuniquecasez(select)begin2'b00: y = a;2'b01: y = b;2'b10: y = c;endcaseend// always_comb