shaiko
Advanced Member level 5
Hello,
I created this record:
I also have these 3 signals:
What is the syntax to assign a , b , c and d accordingly to my record signal ?
I created this record:
Code:
type type_variable_size_word is
record
one_byte_word : std_logic_vector ( 1 * 8 - 1 downto 0 ) ;
two_byte_word : std_logic_vector ( 2 * 8 - 1 downto 0 ) ;
three_byte_word : std_logic_vector ( 3 * 8 - 1 downto 0 ) ;
four_byte_word : std_logic_vector ( 4 * 8 - 1 downto 0 ) ;
end record ;
signal variable_size_word : type_variable_size_word ;
Code:
signal a : std_logic_vector ( 1 * 8 - 1 downto 0 ) ;
signal b : std_logic_vector ( 2 * 8 - 1 downto 0 ) ;
signal c : std_logic_vector ( 3 * 8 - 1 downto 0 ) ;
signal d : std_logic_vector ( 4 * 8 - 1 downto 0 ) ;