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
8 years agoHi Tobyn,
I have exactly the same issue. Did you find a solution for Quartus buffer generating? Because if I change manually in .vho the BUFFER to INOUT, on simulation the bus is Undefined state! Thanks, --- Quote Start --- Hi, 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 --- Quote End ---