Mina Magdy
Member level 3
- Joined
- Jun 19, 2012
- Messages
- 67
- Helped
- 6
- Reputation
- 12
- Reaction score
- 5
- Trophy points
- 1,288
- Location
- Cairo, Egypt
- Activity points
- 1,742
i have a problem with the non-blocking assignment
i start with reg PC = 0 and the next clock reg Next_PC = 1
but PC doesn't change still zero
Code:
always@(posedge clk)
begin
PC <= Next_PC ;
rt_mux2 <= {{16{Instr[15]}},Instr[15:0]} ;
ALU_op_reg <= ALU_op;
rs_reg <= rs ;
J1 <= Instr[25:0] ;
J2 <= J1 ;
PC1 <= PC ;
PC2 <= PC1 ;
PC3 <= PC2 ;
end
i start with reg PC = 0 and the next clock reg Next_PC = 1
but PC doesn't change still zero