VHDL std_logic_vector indexing with “downto”
问题 I would like to set bits of a std_logic_vector separately in order to easily set comments for individual bits or group of bits. Here is what I have: signal DataOut : std_logic_vector(7 downto 0); ... DataOut <= ( 5=>'1', -- Instruction defined 4=>'1', -- Data length control bit, high=8bit bus mode selected 3=>'1', -- Display Line Number ctrl bit, high & N3 option pin to VDD=3 lines display 2=>'0', -- Double height font type control byte, not selected 1 downto 0=>"01", -- Select Instruction