A
Aiken
Guest
I would want to define a bus interface such that I can use it everywhere I need.
I get into a trouble is I need to separate the input and output into two types.
Is there a way to let it only need to declare it one time when I need the bus?
type bus_in_type is record
clk : std_ulogic ;
enb : std_ulogic ;
datain : std_ulogic ;
end record bus_in_type ;
type bus_out_type is record
dataout : std_ulogic ;
douten : std_ulogic ;
end record bus_out_type ;
I get into a trouble is I need to separate the input and output into two types.
Is there a way to let it only need to declare it one time when I need the bus?
type bus_in_type is record
clk : std_ulogic ;
enb : std_ulogic ;
datain : std_ulogic ;
end record bus_in_type ;
type bus_out_type is record
dataout : std_ulogic ;
douten : std_ulogic ;
end record bus_out_type ;