Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow can i tie an input port of my top module to a fixed value using the tool settings
Hi all, I have a signal as an input port from the top which will give a reset value to registers at reset. suppose an example like if(rst_n==1'b0) begin x<=a; else x...
Altera_Forum
Honored Contributor
14 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