E
EmbSys
Guest
Hello -
Consider the following:
signal LCD_Data : std_logic_vector( 0 to 31 );
signal data : std_logic_vector( 0 to 7 );
I want to "replicate" data onto LCD_Data, so after assignment:
LCD_Data( 0 to 7 ) is data
LCD_Data( 8 to 15 ) is data
LCD_Data( 16 to 23 ) is data
LCD_Data( 24 to 31 ) is data
I can do this thus:
LCD_Data <= data & data & data & data;
Is there are a better (more elegant?) way?
Thanks
Consider the following:
signal LCD_Data : std_logic_vector( 0 to 31 );
signal data : std_logic_vector( 0 to 7 );
I want to "replicate" data onto LCD_Data, so after assignment:
LCD_Data( 0 to 7 ) is data
LCD_Data( 8 to 15 ) is data
LCD_Data( 16 to 23 ) is data
LCD_Data( 24 to 31 ) is data
I can do this thus:
LCD_Data <= data & data & data & data;
Is there are a better (more elegant?) way?
Thanks