Skip to content

Commit 1aa13e0

Browse files
committed
yosys: added vhdl.sh
1 parent bca0b5a commit 1aa13e0

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

yosys/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/make
22

3-
DOCKER_CMD=docker run --rm -it -v $$HOME:$$HOME -w $$PWD ghdl/synth:beta
3+
COMMAND=docker run --rm -it -v $$HOME:$$HOME -w $$PWD ghdl/synth:beta bash
44

5-
COMMAND=bash
5+
all: vhdl vlog
66

77
vlog vhdl:
8-
$(DOCKER_CMD) $(COMMAND) $@.sh
8+
$(COMMAND) $@.sh
99

1010
clean:
1111
rm -fr *.cf

yosys/vhdl.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
FLAGS="--std=08 -fsynopsys -fexplicit -frelaxed"
6+
7+
ghdl -a $FLAGS --work=blink_lib ../resources/vhdl/blink.vhdl
8+
ghdl -a $FLAGS --work=blink_lib ../resources/vhdl/blink_pkg.vhdl
9+
ghdl -a $FLAGS ../resources/vhdl/top.vhdl
10+
11+
GENERICS="-gBOO=true -gINT=255 -gLOG='1' -gVEC="11111111" -gCHR='Z' -gSTR="WXYZ" -gSKIP_REA=1"
12+
13+
yosys -Q -m ghdl -p "
14+
ghdl $FLAGS $GENERICS Top ARCH_SEL;
15+
synth -top Top
16+
"
17+

0 commit comments

Comments
 (0)