yosys/tests/verific/range_case.sv

12 lines
206 B
Systemverilog
Raw Permalink Normal View History

2023-02-23 08:04:31 -06:00
module top(input clk, input signed [3:0] sel_w , output reg out);
always @ (posedge clk)
begin
case (sel_w) inside
[-4:3] : out <= 1'b1;
[4:5] : out <= 1'b0;
endcase
end
endmodule