Skip to content

Commit

Permalink
nextpnr: add ':icestorm' and ':prjtrellis'
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor authored and eine committed Jan 3, 2021
1 parent 3a3bc0c commit 9b7ad9a
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 20 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/nextpnr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,41 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}

- name: Build images
run: |
docker build -t hdlc/nextpnr:ice40 --target=ice40 - < nextpnr.dockerfile
docker build -t hdlc/nextpnr:ecp5 --target=ecp5 - < nextpnr.dockerfile
docker build -t hdlc/nextpnr - < nextpnr.dockerfile
- name: Build nextpnr:ice40
run: docker build -t hdlc/nextpnr:ice40 --target=ice40 - < nextpnr.dockerfile

- name: Build nextpnr:icestorm
run: docker build -t hdlc/nextpnr:icestorm --target=icestorm - < nextpnr.dockerfile

- name: Build nextpnr:ecp5
run: docker build -t hdlc/nextpnr:ecp5 --target=ecp5 - < nextpnr.dockerfile

- name: Build nextpnr:prjtrellis
run: docker build -t hdlc/nextpnr:prjtrellis --target=prjtrellis - < nextpnr.dockerfile

- name: Build nextpnr:nextpnr
run: docker build -t hdlc/nextpnr - < nextpnr.dockerfile

- run: docker run --rm -v $(pwd):/wrk hdlc/nextpnr:ice40 /wrk/test/nextpnr--ice40.sh
#uses: docker://hdlc/nextpnr:ice40
#with:
# args: ./test/nextpnr-ice40.sh

- run: docker run --rm -v $(pwd):/wrk hdlc/nextpnr:icestorm /wrk/test/nextpnr--icestorm.sh
#uses: docker://hdlc/nextpnr:icestorm
#with:
# args: ./test/nextpnr-icestorm.sh

- run: docker run --rm -v $(pwd):/wrk hdlc/nextpnr:ecp5 /wrk/test/nextpnr--ecp5.sh
#uses: docker://hdlc/nextpnr:ecp5
#with:
# args: ./test/nextpnr-ecp5.sh

- run: docker run --rm -v $(pwd):/wrk hdlc/nextpnr:prjtrellis /wrk/test/nextpnr--prjtrellis.sh
#uses: docker://hdlc/nextpnr:prjtrellis
#with:
# args: ./test/nextpnr-prjtrellis.sh

- run: docker run --rm -v $(pwd):/wrk hdlc/nextpnr /wrk/test/nextpnr.sh
#uses: docker://hdlc/nextpnr
#with:
Expand All @@ -47,5 +66,7 @@ jobs:
- name: Deploy to DockerHub
run: |
docker push hdlc/nextpnr:ice40
docker push hdlc/nextpnr:icestorm
docker push hdlc/nextpnr:ecp5
docker push hdlc/nextpnr:prjtrellis
docker push hdlc/nextpnr
12 changes: 5 additions & 7 deletions doc/gen_tool_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@
'prog'
],
'otherin': [
'nextpnr',
'nextpnr:ice40',
'nextpnr:ecp5',
'nextpnr:icestorm',
]
},
'nextpnr': {
'url': 'https://hdl.github.io/awesome/items/nextpnr',
'use': [
'nextpnr',
'nextpnr:ice40',
'nextpnr:ecp5'
'nextpnr:ecp5',
'nextpnr:icestorm',
'nextpnr:prjtrellis'
],
'in': ['impl']
},
Expand All @@ -73,9 +73,7 @@
'impl'
],
'otherin': [
'nextpnr',
'nextpnr:ice40',
'nextpnr:ecp5',
'nextpnr:prjtrellis',
]
},
'symbiyosys': {
Expand Down
24 changes: 16 additions & 8 deletions graph/graph.dot
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ digraph G {
"ghdl:yosys"
"icestorm"
"nextpnr:ice40"
"nextpnr:icestorm"
"nextpnr:ecp5"
"nextpnr:prjtrellis"
"nextpnr"
"prjtrellis"
"yosys"
Expand Down Expand Up @@ -221,16 +223,25 @@ digraph G {
"nextpnr"
} [style=dotted];

{ rank=same
"nextpnr:ice40",
"nextpnr:ecp5"
};

{ rank=same
node [shape=folder, color=red, fontcolor=red];
"t_nextpnr" [label="nextpnr"];
"t_nextpnr:ice40" [label="nextpnr--ice40"];
"t_nextpnr:ecp5" [label="nextpnr--ecp5"];
"t_nextpnr:icestorm" [label="nextpnr--icestorm"];
"t_nextpnr:prjtrellis" [label="nextpnr--prjtrellis"];
}

"nextpnr" -> "t_nextpnr";
"nextpnr:ice40" -> "t_nextpnr:ice40";
"nextpnr:icestorm" -> "t_nextpnr:icestorm";
"nextpnr:ecp5" -> "t_nextpnr:ecp5";
"nextpnr:prjtrellis" -> "t_nextpnr:prjtrellis";
}

subgraph cluster_prjtrellis {
Expand Down Expand Up @@ -405,6 +416,9 @@ digraph G {
"nextpnr:ecp5"
};

"nextpnr:ice40" -> "nextpnr:icestorm";
"nextpnr:ecp5" -> "nextpnr:prjtrellis";

"p_formal_ghdl" -> "formal";

"p_gtkwave_scratch" -> "pkg:gtkwave";
Expand Down Expand Up @@ -444,15 +458,9 @@ digraph G {
"p_impl_pkg:ghdl-yosys-plugin" -> "impl";
"p_impl_pkg:yosys" -> "impl";

"p_nextpnr_icestorm" -> {
"nextpnr",
"nextpnr:ice40"
};
"p_nextpnr_icestorm" -> "nextpnr:icestorm";

"p_nextpnr_prjtrellis" -> {
"nextpnr",
"nextpnr:ecp5"
};
"p_nextpnr_prjtrellis" -> "nextpnr:prjtrellis";
}

}
10 changes: 10 additions & 0 deletions nextpnr.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,20 @@ COPY --from=build-ice40 /opt/nextpnr /

#---

FROM ice40 AS icestorm
COPY --from=hdlc/pkg:icestorm /icestorm /

#---

FROM base AS ecp5
COPY --from=build-ecp5 /opt/nextpnr /

#---

FROM ecp5 AS prjtrellis
COPY --from=hdlc/pkg:prjtrellis /prjtrellis /

#---

FROM base AS all
COPY --from=build-all /opt/nextpnr /
11 changes: 11 additions & 0 deletions test/nextpnr--icestorm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

set -e

cd $(dirname "$0")

echo "CC: $CC"
echo "CXX: $CXX"

./nextpnr--ice40.sh
./icestorm.sh
11 changes: 11 additions & 0 deletions test/nextpnr--prjtrellis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

set -e

cd $(dirname "$0")

echo "CC: $CC"
echo "CXX: $CXX"

./nextpnr--ecp5.sh
./prjtrellis.sh

0 comments on commit 9b7ad9a

Please sign in to comment.