Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIf you really need x to be a register, you should use a clock and include your code into a
always @ (posedge clk) block. In the way you are using x here, a combinatorial assignment is enough: assign x = (rst_n==1'b0) ? a : s; and x should be defined wire instead of reg