Forum Discussion
Altera_Forum
Honored Contributor
12 years agoYes. Hopefully if more people ask for it, it will become more widely supported.
To code this in Verilog, you could create an in-between function or macrofunction reg inbetween(input low, value, high);
begin
inbetween = value >= low && value <= high;
end
endfunction
case (1);
inbetween(1,xcount,100): junk<=1;
inbetween(101,xcount,101): junk<=2;
inbetween(102,xcount,200): junk<=3;
endcase