liu_uestc
Junior Member level 1
always@(posedge s3 or posedge addpc);
begin
if(addpc) pc<=pctemp+1'b1;
else begin pc<=13'b0000000000111;pctemp<=pctemp+1'b1;end
end
warningctemp isn't the always control envent!
///////////////////////////////////////////////////////////////////////////////////////////////ffunction description:
pc adds one by addpc asynchronously ,pc becomes 13'b0000000000111on the rising edge of s3;
//////////////
how to modify?
begin
if(addpc) pc<=pctemp+1'b1;
else begin pc<=13'b0000000000111;pctemp<=pctemp+1'b1;end
end
warningctemp isn't the always control envent!
///////////////////////////////////////////////////////////////////////////////////////////////ffunction description:
pc adds one by addpc asynchronously ,pc becomes 13'b0000000000111on the rising edge of s3;
//////////////
how to modify?