reg aa,bb;
always @ ( posedge clk or negedge rst_n )
if (!rst_n) begin
aa <= 1'b1;
bb <= 1'b1;
end
else begin
aa <= 1'b0;
bb <= aa;
end
reg aa,bb;
always @ ( posedge clk or negedge rst_n )
if (!rst_n) begin
aa <= 1'b1;
bb <= 1'b1;
end
else begin
aa = 1'b0;
bb = aa;
end
语句在该语句结束时就完成了赋值操作。即AA的值在该赋值语句结束后立即改变。
用户603678 2012-10-28 10:26