Forum Discussion
Altera_Forum
Honored Contributor
17 years agoSend on a 8 data bus : 8 data and 8 data and ...
Hi, My problem is very simple : I want to send on a single bus of 8 bits (named "BigBus" for example), 3 differents letter (coded in ASCII so 8 bits each). At each clock count, the data mu...
Altera_Forum
Honored Contributor
17 years agouse counter and case, or 2D array:
type my_data is array(0 to 2) of std_logic_vector(7 downto 0);
signal my_characters: my_data := ("01110100","00001111","00110000");
-- or
--constant my_characters: my_data := ("01110100","00001111","00110000");
signal count: integer range 0 to 2;
begin
process
begin
wait until clk = '1';
if count = 2 then
count <= 0;
else
count <= count + 1;
end if;
bigbus <= my_characters(count);
end process;