D
Deepu
Guest
Hi All,
I have verilog code with case statements:
3'b000 : begin
casex(reg[10:7])
4'b0xxx : begin $display("ERROR"); end
4'bxx0x : begin $display("ERROR"); end
default : begin $display("NOT POSSIBLE"); end
endcase
end
In this case reg[10:7] will have different values like 1001, 1100, 0100
and so on.
Now if i want to ignore when 4'b0xx0 happens how can this be done.
Because in this particular case, first case will always be displayed.
Please help me on this.
Thanks!
I have verilog code with case statements:
3'b000 : begin
casex(reg[10:7])
4'b0xxx : begin $display("ERROR"); end
4'bxx0x : begin $display("ERROR"); end
default : begin $display("NOT POSSIBLE"); end
endcase
end
In this case reg[10:7] will have different values like 1001, 1100, 0100
and so on.
Now if i want to ignore when 4'b0xx0 happens how can this be done.
Because in this particular case, first case will always be displayed.
Please help me on this.
Thanks!