我在systemverilog中有這個代碼,我必須在for循環中使用十六進制數。我正在嘗試下面的語法和代碼。 genvar i,j;
localparam int i_d = 1;
localparam int j_d = 134;
generate
for (i = 8'h01; i <= MAX1; i = i + INCR)
begin
add_bit[i_d
在這個代碼片段中: reg [4:0] status_led = 5'b00100;
case (status_led)
default: begin
if (rotation) begin
status_led[4] <= status_led[3];
status_led[3] <= status_led[2];