Skip to content
Snippets Groups Projects
Commit 01e1eaa6 authored by Solveig Langbakk's avatar Solveig Langbakk
Browse files

fikset msg_key

parent 2a237678
Branches
No related tags found
No related merge requests found
......@@ -70,26 +70,27 @@ begin
Wr_sig <= '1';
adresse <= "001";
end if;
else
--Hvis RX har mottatt noe data, så skal vi sende videre. Vi skal også skru på led-paeren.
if adresse = "101" and msg_key = '0' then
if adresse = "101" then
status <= reading;
LED_msg <= '1';
adresse <= "001";
Wr_sig <= '1';
--status <= idle;
else
else
Data_bus <= "ZZZZZZZZ";
adresse <= "ZZZ";
Wr_sig <= '0';
Rd_sig <= '0';
--status <= idle;
end if;
end if;
--end if;
end if;
end if;
--end if;
end process p_clk;
end RTL;
......@@ -94,6 +94,7 @@ begin
begin
msg_key <= '1';
wait for CLK_PERIOD;
wait for CLK_PERIOD;
msg_key <= '0';
wait for CLK_PERIOD;
......@@ -106,6 +107,7 @@ begin
procedure loopAscii is
begin
wait for 100 ns;
adresse(2 downto 0) <= "101";
wait until rising_edge(clk);
Data_bus <= "01000001";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment