-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using inout record #176
Comments
Hmmm, right - it's more a limitation of FPGA-hardware, VHDL itself supports bidirectional records, I use it in simulation for my verification components a lot. |
I can investigate, but I need a reproducer.
|
Here you go @tgingold. library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
package utils is
type t_comm_channel is record
valid : std_logic;
ready : std_logic;
data : std_logic_vector(15 downto 0);
end record;
end package;
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use work.utils.all;
entity test is
port (
input : inout t_comm_channel;
output : inout t_comm_channel
);
end entity;
architecture rtl of test is
begin
output <= input;
end architecture; in yosys (with ghdl module loaded), run |
I declare an entity which has an
inout record
port.When I run simulation in GHDL, it works as intended. When I try to run it through yosys I get this error:
The record is defined as:
The text was updated successfully, but these errors were encountered: