PPT ½½¶óÀ̵å
- Aggregates are a convenient means of grouping both scalar and composite data-types for assignment.
signal H_BYTE, L_BYTE: std_logic_vector (7 downto 0); signal DATA : std_logic_vector (15 downto 0); signal A, B, C, D : std_logic;signal WORD : std_logic_vector (3 downto 0);
( H_BYTE, L_BYTE ) <= DATA ;
WORD <= ( 2 => ¡®1¡¯, 3 => D, Others => ¡®0¡¯ ) ;
DATA <= ( Others => ¡®1¡¯) ;
The total number of elements on both sides of the assignment must match, ¡°Others¡± can be used as a default assignment, regardless of the array size.