diff options
author | tgingold <tgingold@users.noreply.github.com> | 2017-02-12 20:14:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 20:14:51 +0100 |
commit | c224fa3858309c22dea7f8ca50365bc22a65812f (patch) | |
tree | 181ba21799d5b62d6012c829411d5de9abefee09 /icezum/pushbutton_and/pushbutton_and.vhdl | |
parent | 746e8f2de71059cc176417a046babb3edfed1458 (diff) | |
parent | 21a2d83ea1d9b4c824b967fc2d48be2f10585e47 (diff) | |
download | ghdl-yosys-plugin-c224fa3858309c22dea7f8ca50365bc22a65812f.tar.gz ghdl-yosys-plugin-c224fa3858309c22dea7f8ca50365bc22a65812f.tar.bz2 ghdl-yosys-plugin-c224fa3858309c22dea7f8ca50365bc22a65812f.zip |
Merge pull request #5 from Obijuan/master
Icezum Alhambra board Examples
Diffstat (limited to 'icezum/pushbutton_and/pushbutton_and.vhdl')
-rw-r--r-- | icezum/pushbutton_and/pushbutton_and.vhdl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/icezum/pushbutton_and/pushbutton_and.vhdl b/icezum/pushbutton_and/pushbutton_and.vhdl new file mode 100644 index 0000000..0a9831d --- /dev/null +++ b/icezum/pushbutton_and/pushbutton_and.vhdl @@ -0,0 +1,18 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity pushbutton_and is + port (sw1, sw2 : in std_logic; + led0, led7 : out std_logic); +end pushbutton_and; + +architecture synth of pushbutton_and is + +signal a : std_logic; + +begin + a <= sw1 and sw2; + led0 <= a; + led7 <= not a; +end synth; |