I have assigned names to numbers using:
`define ADD 0
`define SUB 1
`define LSF 2
`define RSF 3
`define AND 4
`define OR 5
I'd like to handle in a case block such that the code will apply for more than one option.
In C this can be done using:
switch (x){
case ADD:
case SUB:
case LSF:
case RSF:
case AND:
case OR:
printf ("Handling");
break;
}
Is there a way to achieve that in Verilog? Thanks!