Altera_Forum
Honored Contributor
8 years agoVHDL inout port in gate-level simulation
Hi,
I have a design with an bidirectional bus (defined as inout) at the very top level.In module:
HWID : inout std_logic_vector(7 downto 0);
.
.
HWID <= data_out when (nRead = '0') else (others => 'Z');
In test bench:
signal hwid : std_logic_vector(7 downto 0);
.
.
hwid <= hwid_tb when nRead = '1' else (others => 'Z'); The code works just fine at the RTL simulation and even programmed into the device. However, if I try to run gate-level simulation, ModelSim gives the following error: Error: ***.vhd(94): Signal 'hwid' must have only one source since it is connected to buffer port 'HWID'. Anyone have any idea what is going on here? Thanks, Tobyn