使用Verilog或VHDL编写一个基本的FPGA逻辑单元的模块。
module LogicUnit(
input wire A,
input wire B,
output reg Y
);
always @(*) begin
Y = A & B;
end
endmodule
module LogicUnit(
input wire A,
input wire B,
output reg Y
);
always @(*) begin
Y = A & B;
end
endmodule