Skip to content

Commit

Permalink
Adding xcircuit
Browse files Browse the repository at this point in the history
  • Loading branch information
hpretl committed Jul 28, 2024
1 parent 096861c commit 1127347
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This document summarizes the most important changes of the individual releases o
* Add required tools for PULP-platform (morty, bender, svase, sv2v, verible).
* Add `surelog`.
* Add `pygmid`.
* Add `xcircuit`.
* Bump various tools versions.
* Fixed VHDL usage in OpenLane.
* Simplified tools paths by removing tool version.
Expand Down
11 changes: 11 additions & 0 deletions _build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,16 @@ ARG VERILATOR_NAME="verilator"
RUN --mount=type=bind,source=images/verilator,target=/images/verilator \
bash /images/verilator/scripts/install.sh

#######################################################################
# Compile xcircuit
#######################################################################
FROM base AS xcircuit
ARG XCIRCUIT_REPO_URL="https://github.com/RTimothyEdwards/XCircuit"
ARG XCIRCUIT_REPO_COMMIT="b6d0b096a6a4730a4255efb50191e03cfa9b5496"
ARG XCIRCUIT_NAME="xcircuit"
RUN --mount=type=bind,source=images/xcircuit,target=/images/xcircuit \
bash /images/xcircuit/scripts/install.sh

#######################################################################
# Compile xschem
#######################################################################
Expand Down Expand Up @@ -439,6 +449,7 @@ COPY --from=riscv-gnu-toolchain ${TOOLS}/ ${TOOLS}/
COPY --from=slang ${TOOLS}/ ${TOOLS}/
COPY --from=surelog ${TOOLS}/ ${TOOLS}/
COPY --from=verilator ${TOOLS}/ ${TOOLS}/
COPY --from=xcircuit ${TOOLS}/ ${TOOLS}/
COPY --from=xschem ${TOOLS}/ ${TOOLS}/
COPY --from=xyce ${TOOLS}/ ${TOOLS}/
COPY --from=xyce-xdm ${TOOLS}/ ${TOOLS}/
Expand Down
10 changes: 10 additions & 0 deletions _build/images/xcircuit/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
cd /tmp || exit 1

git clone --filter=blob:none "${XCIRCUIT_REPO_URL}" "${XCIRCUIT_NAME}"
cd "${XCIRCUIT_NAME}" || exit 1
git checkout "${XCIRCUIT_REPO_COMMIT}"
./configure --prefix="${TOOLS}/${XCIRCUIT_NAME}"
make -j"$(nproc)"
make install
3 changes: 3 additions & 0 deletions _build/tool_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
- name: vlogtoverilog
repo: https://github.com/RTimothyEdwards/qflow
commit: 1.4.103
- name: xcircuit
repo: https://github.com/RTimothyEdwards/XCircuit
commit: b6d0b096a6a4730a4255efb50191e03cfa9b5496
- name: xschem
repo: https://github.com/StefanSchippers/xschem.git
commit: 8b5ed3f32ed77b67044b7097376e845be518cdc2
Expand Down

0 comments on commit 1127347

Please sign in to comment.