Forum Discussion
Altera_Forum
Honored Contributor
12 years agoQuestion...
Hello, please advise me. Imagine I have 4 registers: regA, regB, regC and regD, all defined as "reg [7:0] regA;". In addition to addressing these registers separately, I need to "assemble" them...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- You simply define regs array as a 'wire' intead of 'reg'. Then you assign the actual register value to these signals. --- Quote End --- --- Quote Start --- Or do you select it at compile time? --- Quote End --- Cris, can you give example please. wire regArr[31:0]; assign regArr = { regA, regB, regC, regD }; Please excuse me if my questions seem stupid... I am completely lost in it.