B
Brad Smallridge
I have this code:
subtype field1 is natural range 15 downto 0;
....
begin
memory_data_out_update
rocess(clk)
begin
....
if(condition)then
mem_do(field1)<=conv_std_logic_vector(128,16);
else
mem_do(field1)<=mem_di(8)(field1);
end if;
....
Mem_di(8)() is a clocked delayed version
of the memory input from a previous read cycle.
What I would like to do is automatically
calculate the "length" of the field1 range
and put it in the conv_std_logic_vector
parameters so that I can change my fields
definitions without changing the
conv_std_logic_vector code.
Brad Smallridge
AiVision
subtype field1 is natural range 15 downto 0;
....
begin
memory_data_out_update
begin
....
if(condition)then
mem_do(field1)<=conv_std_logic_vector(128,16);
else
mem_do(field1)<=mem_di(8)(field1);
end if;
....
Mem_di(8)() is a clocked delayed version
of the memory input from a previous read cycle.
What I would like to do is automatically
calculate the "length" of the field1 range
and put it in the conv_std_logic_vector
parameters so that I can change my fields
definitions without changing the
conv_std_logic_vector code.
Brad Smallridge
AiVision