Skip to content

Commit

Permalink
M'han vencut els botons
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrerax committed Mar 1, 2021
1 parent 648b8e5 commit d7c6ed3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tarea9/Controlador.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ END Controlador;
ARCHITECTURE Structure OF Controlador IS
type tipoestat is (REPOS, IMPRIMINT);
signal estat, prxestat : tipoestat := REPOS;
--signal prxKEY0, prxKEY1 : std_logic;

BEGIN

Expand All @@ -27,5 +28,8 @@ prxestat <= IMPRIMINT when estat = REPOS and KEY1 = '0' else
LEDG <= '1' when estat = REPOS else '0' when estat = IMPRIMINT;
run <= '0' when estat = REPOS else '1' when estat = IMPRIMINT;


--prxKEY0 <= '1' when KEY0='1' else '0' when rising_edge(Clk);
--prxKEY1 <= '1' when KEY1='1' else '0' when rising_edge(Clk);
estat <= prxestat when rising_edge(Clk);
END Structure;

0 comments on commit d7c6ed3

Please sign in to comment.