求教大神们这个程序错在哪里了

2019-07-15 21:20发布

提示错误Error (10170): Verilog HDL syntax error at led.v(7) near text "b";  expecting ":", or ","
module led (key_in,pio_led);
input[2:0]key_in;
output reg[2:0]pio_led;
always @(key_in)
begin
case(key_in)
3b'000:pio_led<=3b'000;
3b'001:pio_led<=3b'001;
3b'010:pio_led<=3b'010;
3b'100:pio_led<=3b'100;
3b'011:pio_led<=3b'011;
3b'110:pio_led<=3b'110;
3b'101:pio_led<=3b'101;
3b'111:pio_led<=3b'111;
endcase
end
endmodule


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。