Forum Discussion
Altera_Forum
Honored Contributor
7 years agomake LED a reg in 2nd code.
A reg is not automatically a register, it is just a data type. A wire can only be used in an assign statement. reg types can be used in procedural code.make LED a reg in 2nd code.
A reg is not automatically a register, it is just a data type. A wire can only be used in an assign statement. reg types can be used in procedural code.