H
hhanff
Hello!
I declared the following type and the corresponding signal:
type sd_card_data_a is array (natural range 527 downto 0) of
std_logic_vector(7 downto 0);
signal sd_card_data_as : sd_card_data_a;
What I can do now is create an alias for a single element of the
signal:
alias data_start_block_s : std_logic_vector(7 downto 0) is
sd_card_data_as(0);
What I can NOT do is defining an alias that spans several elements of
the array:
alias data_stuff_bytes_s : std_logic_vector(15 downto 0) is
sd_card_data_as(10 downto 9);
Even when I define a type for the alias:
type data_stuff_bytes_a is array (514 downto 513) of
std_logic_vector(7 downto 0);
alias data_stuff_bytes_s : data_stuff_bytes_a is sd_card_data_as(2
downto 1);
My questions are:
Did anybody understand my promblem?
Can anybody present a solution?
Greetings,
/h
I declared the following type and the corresponding signal:
type sd_card_data_a is array (natural range 527 downto 0) of
std_logic_vector(7 downto 0);
signal sd_card_data_as : sd_card_data_a;
What I can do now is create an alias for a single element of the
signal:
alias data_start_block_s : std_logic_vector(7 downto 0) is
sd_card_data_as(0);
What I can NOT do is defining an alias that spans several elements of
the array:
alias data_stuff_bytes_s : std_logic_vector(15 downto 0) is
sd_card_data_as(10 downto 9);
Even when I define a type for the alias:
type data_stuff_bytes_a is array (514 downto 513) of
std_logic_vector(7 downto 0);
alias data_stuff_bytes_s : data_stuff_bytes_a is sd_card_data_as(2
downto 1);
My questions are:
Did anybody understand my promblem?
Can anybody present a solution?
Greetings,
/h