Forum Discussion
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- It's VHDL not C! Variable command should never exist.. --- Quote End --- You're right in so far, that there isn't a reason to use a variable here. But apart from that, variables are existing as objects in VHDL specification, and they have a purpose. Some VHDL constructs must use variables, others may use it to achieve specific behaviour (Variable assignments behave similar to blocking assignments in Verilog). And in many places, a confused VHDL programmer could use it without causing a different behaviour than when using signals. But it's bad programming style.