[email=always@(posedge]always@(posedge[/email] clk or negedge rst)
begin
if(!rst)
begin
temp=0;
temp1=0;
count=0;
re_mess=0;
end
else
begin
count=count+1;
case(pcode)
3'b000:temp=-2;
3'b001:temp=-1;
3'b010:temp=0;
3'b011:temp=1;
3'b100:temp=2;
default:temp=0;
endcase