我正在按照教程闪烁我的fpga领导。 这些是呈现的代码:)这些verilog代码有什么区别?
module LED (
input [17:0] SW,
output reg [17:0] LEDR
);
assign led = switch;
endmodule
2)--------
module LED (
input [17:0] SW,
output reg [17:0] LEDR
);
always @(*)
led = switch;
endmodule
3)---------
module LED (
input CLOCK_50,
input [17:0] SW,
output reg [17:0] LEDR
);
always @(posedge CLOCK_50)
LEDR = SW;
endmodule
问题是什么?另外,请格式化代码。 – sfjac