Skip to content

Commit

Permalink
Add travis configs for the sim build
Browse files Browse the repository at this point in the history
Now that sim should build, add some travis configs so we can keep it
building.
  • Loading branch information
stffrdhrn committed Oct 8, 2018
1 parent a0dcf61 commit a83155c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ addons:
- python-yaml
- realpath
- util-linux
- libevent-dev
- libjson-c-dev

git:
submodules: false
Expand Down Expand Up @@ -185,3 +187,13 @@ jobs:

- stage: Targets
env: C=lm32 P=opsis T="hdmi2usb"

#--------------------------------------------
# SIM/Verilator Targets
#--------------------------------------------
- stage: Targets
env: C=or1k P=sim T="base"

- stage: Targets
env: C=or1k P=sim T="base net"

8 changes: 8 additions & 0 deletions scripts/download-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ case $PLATFORM_TOOLCHAIN in
conda install -y $CONDA_FLAGS nextpnr
check_exists nextpnr-ice40
;;
Sim)
export HAVE_FPGA_TOOLCHAIN=1
# verilator
echo
echo "Installing verilator (Verilog Simulator tool)"
conda install -y $CONDA_FLAGS verilator
check_exists verilator
;;
*)
;;
esac
Expand Down
8 changes: 8 additions & 0 deletions scripts/enter-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ case $PLATFORM_TOOLCHAIN in

check_exists nextpnr-ice40 || return 1
;;
Sim)
export HAVE_FPGA_TOOLCHAIN=1
# verilator



check_exists verilator || return 1
;;
*)
;;
esac
Expand Down

0 comments on commit a83155c

Please sign in to comment.