Forum Discussion
Altera_Forum
Honored Contributor
9 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 ...
Altera_Forum
Honored Contributor
9 years agoHi,
I now understand what is going on. I looked at the .vho Altera compiled my design into and the inout port has been converted from inout to buffer type! It also converted all out ports to buffers as well. That explains why ModelSim complains about multiple drivers: it doesn't like anything in my test bench writing to the buffer port.ENTITY RF_module_top IS
PORT (
\Rise_Edge_P(n)\ : IN std_logic := '0';
\Fall_Edge_P(n)\ : IN std_logic := '0';
HWID : BUFFER std_logic_vector(7 DOWNTO 0);
nRead : IN std_logic;
.
.
nWrite : IN std_logic
);
END RF_module_top;
I still don't get why Altera is doing this... Anyone know how to get around this? Thanks, Tobyn