2
我是verilog的初學者。verilog級聯的方向
幾乎所有連接的例子如下。
wire [3:0] result;
reg a, b, c, d;
result = {a, b, c, d};
以下可能嗎?
wire [3:0] result;
wire a, b, c, d;
{a, b, c, d} = result;
我是verilog的初學者。verilog級聯的方向
幾乎所有連接的例子如下。
wire [3:0] result;
reg a, b, c, d;
result = {a, b, c, d};
以下可能嗎?
wire [3:0] result;
wire a, b, c, d;
{a, b, c, d} = result;
分配的LHS(左手側)做允許級聯。
module mod1;
wire [3:0] result;
wire a, b, c, d;
reg e,f,g,h;
{a, b, c, d} = result; //Invalid, not in procedural construct
assign {a, b, c, d} = result; //Valid
assign {a,{b,c},d} = result; //Valid
initial
{e, f, g, h} = result; //Valid
endmodule
非常感謝〜 – user1467945