for_and_loop_comb.v
来自「Vlerilog HDL高级数字设计源码」· Verilog 代码 · 共 17 行
V
17 行
module for_and_loop_comb (out, a, b);
output [3: 0] out;
input [3: 0] a, b;
reg [2: 0] i;
reg [3: 0] out;
wire [3: 0] a, b;
always @ (a or b)
begin
for (i = 0; i <= 3; i = i+1)
out[i] = a[i] & b[i];
end
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?