Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHow to accumulate variable using submodule
I am trying to model an equation of the type: x=bx+c in Verilog. I've written a module which takes input 'x' and gives output 'bx+c'. However since the input and output out of a submodule hav...
Altera_Forum
Honored Contributor
16 years agoAs Pletz suggested, the design won't work if xreg isn't assigned in a clock synchronous always block. The "signal stable" construct doesn't work in synthesis (possibly in simulation).
Alternatively, if the submodule is implementing a register for xout, you can directly and unconditionally assign xout to xin.