Altera_Forum
Honored Contributor
11 years agoHow can I connect multiple logic wires to module outputs?
I have a System Verilog syntax related question. In my Quartus II project (for Cyclone IV) I need to have two modules control the SRAM ports (SRAM_DQ, SRAM_OE_N, SRAM_WE_N, etc.). These two modules (one is the NIOS SOC module and another is the VGA color mapping module) access and modify the SRAM port outputs. When directly connecting the inputs and outputs of these modules to the SRAM pins in my top-level file, Quartus gives me errors that these pins can't be assigned more than one value.
One solution I tried was to create "logic" wires in the top-level file and adding statements like assign SRAM_OE_N = sramOE_N; // SRAM_OE_N is the output pin to SRAM, sramOE_N is a local "logic" wire and connecting these logic wires instead to the individual modules but this didn't work either. How can I solve this?