aboutsummaryrefslogtreecommitdiffstats
path: root/icezum/pushbutton
diff options
context:
space:
mode:
authoreine <6628437+eine@users.noreply.github.com>2020-01-19 03:25:43 +0000
committertgingold <tgingold@users.noreply.github.com>2020-01-19 04:25:43 +0100
commit910073d647e55d133494429d8c3a4bacffc32428 (patch)
tree6b1e616a1f670d44b03c1239ab5cba8aff15b909 /icezum/pushbutton
parent175123cda990ee2b5cfac461bd8ec44956da302a (diff)
downloadghdl-yosys-plugin-910073d647e55d133494429d8c3a4bacffc32428.tar.gz
ghdl-yosys-plugin-910073d647e55d133494429d8c3a4bacffc32428.tar.bz2
ghdl-yosys-plugin-910073d647e55d133494429d8c3a4bacffc32428.zip
migrate from Travis to GHA and rework examples (#78)
* migrate from Travis to GHA * rework examples
Diffstat (limited to 'icezum/pushbutton')
-rw-r--r--icezum/pushbutton/Makefile32
-rw-r--r--icezum/pushbutton/README.md17
-rw-r--r--icezum/pushbutton/pushbutton.pcf7
-rw-r--r--icezum/pushbutton/pushbutton.vhdl14
4 files changed, 0 insertions, 70 deletions
diff --git a/icezum/pushbutton/Makefile b/icezum/pushbutton/Makefile
deleted file mode 100644
index d483e9a..0000000
--- a/icezum/pushbutton/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-PROJ = pushbutton
-PIN_DEF = $(PROJ).pcf
-DEVICE = hx1k
-
-all: $(PROJ).rpt $(PROJ).bin
-
-%.blif: %.vhdl
- ghdl -a $(PROJ).vhdl
- yosys -m ../../ghdl.so -p 'ghdl $(PROJ); synth_ice40 -blif $@'
-
-
-%.asc: $(PIN_DEF) %.blif
- arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^
-
-%.bin: %.asc
- icepack $< $@
-
-%.rpt: %.asc
- icetime -d $(DEVICE) -mtr $@ $<
-
-prog: $(PROJ).bin
- iceprog $<
-
-sudo-prog: $(PROJ).bin
- @echo 'Executing prog as root!!!'
- sudo iceprog $<
-
-clean:
- rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin work-obj93.cf
-
-.SECONDARY:
-.PHONY: all prog clean
diff --git a/icezum/pushbutton/README.md b/icezum/pushbutton/README.md
deleted file mode 100644
index 6aba730..0000000
--- a/icezum/pushbutton/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-A hello world example for the **Icezum Alhambra board**
-Testing the sw1 pushbutton. The state of the button and its negated are wired
-to led0 and led7 respectively
-
-Execute
-
-```sh
-$ make
-```
-
-for synthesizing the example and
-
-```sh
-$ make prog
-```
-
-for programing the board
diff --git a/icezum/pushbutton/pushbutton.pcf b/icezum/pushbutton/pushbutton.pcf
deleted file mode 100644
index 807307f..0000000
--- a/icezum/pushbutton/pushbutton.pcf
+++ /dev/null
@@ -1,7 +0,0 @@
-set_io sw1 10
-set_io led0 95
-set_io led7 104
-
-
-
-
diff --git a/icezum/pushbutton/pushbutton.vhdl b/icezum/pushbutton/pushbutton.vhdl
deleted file mode 100644
index 8ad516e..0000000
--- a/icezum/pushbutton/pushbutton.vhdl
+++ /dev/null
@@ -1,14 +0,0 @@
-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;