Forum Discussion
Altera_Forum
Honored Contributor
12 years agoAs a first comment, the unconditional assignment "new_bw <=0" in the quoted Verilog code is not corresponding to the standard for synthesizable Verilog (IEEE Std 1364.1). I'm not sure, if it will be accepted by all tools and achieves consistency between simulation and hardware behaviour. You can hardly translate bad Verilog code to synthesizable VHDL without some rework.
To resolve the bad code issue, you have to analyze the original code for the usage of the reg variable new_bw in other places and determine the intended behaviour. The problem can't be clarified by only looking at the quoted always block.