58 lines
958 B
VHDL
58 lines
958 B
VHDL
|
|
architecture RTL of FIFO is
|
|
|
|
begin
|
|
|
|
my_proc : process
|
|
|
|
-- These are passing
|
|
variable ret : my_type :=
|
|
(
|
|
data => (others => '-'),
|
|
valid => '0',
|
|
sop => '0',
|
|
eop => '0',
|
|
empty => (others => '0'),
|
|
error => (others => '0')
|
|
);
|
|
|
|
-- These are failing
|
|
|
|
variable ret : my_type :=
|
|
(
|
|
data => (others => '-'),
|
|
valid => '0',
|
|
sop => '0',
|
|
eop => '0',
|
|
empty => (others => '0'),
|
|
error => (others => '0')
|
|
);
|
|
|
|
|
|
-- This is not an array and should not be "fixed"
|
|
|
|
variable d : my_type :=
|
|
(d2 xor to_stdulogic(gen2)) &
|
|
(d1 xor to_stdulogic(gen1));
|
|
|
|
variable new_phase : my_type := (not sig1) or
|
|
sig2 or
|
|
sig3;
|
|
|
|
-- Test functions/constant in array
|
|
|
|
variable data_concurrent : my_type :=
|
|
(
|
|
c_enum_list(ENUM_LITERAL_1) => 1,
|
|
others => 'X'
|
|
);
|
|
|
|
variable v_result : string(1 to
|
|
2);
|
|
|
|
begin
|
|
|
|
end process;
|
|
|
|
end architecture RTL;
|