diff options
Diffstat (limited to 'icezum/pushbutton/pushbutton.vhdl')
-rw-r--r-- | icezum/pushbutton/pushbutton.vhdl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/icezum/pushbutton/pushbutton.vhdl b/icezum/pushbutton/pushbutton.vhdl new file mode 100644 index 0000000..8ad516e --- /dev/null +++ b/icezum/pushbutton/pushbutton.vhdl @@ -0,0 +1,14 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity pushbutton is + port (sw1 : in std_logic; + led0, led7 : out std_logic); +end pushbutton; + +architecture synth of pushbutton is +begin + led0 <= sw1; + led7 <= not sw1; +end synth; |