Forum Discussion
Altera_Forum
Honored Contributor
7 years ago --- Quote Start --- 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. --- Quote End --- Hi, thanks for the reply. So, it sounds like you are suggesting that a reg type can be used to generate combinational logic... say by using it outside of an always @ (posedge) block. I hadn't thought of this, but I'll give it a try and see if it works. -J