Is there a tool that tells which variable is assigned more then it size(no. of bits). VHDL will throw an error but verilog does not throw an error. It just truncates the extra bits assigned to the variable. Please Help!
In Verilog the bitsize of the destination (on the left) dictate the size that is used for the whole expression. All the nets on the right side of the expression get truncated or expandend to that bitsize automatically. That's one of the big advantages of Verilog over VHDL (for me).
An implicit truncation is bad coding style and will lead to synthesis/lint warnings. An implicit expansion can be discussed.
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.