Skip to content

Commit

Permalink
make clash work again (modulo sed hack)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgruetter committed Nov 14, 2020
1 parent c197536 commit df4b581
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 91 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ test/build/
# no need to put under version control because stack.yaml already hardcodes all versions precisely
stack.yaml.lock
gnu-mcu-eclipse
*.dyn_o
*.dyn_hi
src/verilog/
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ before_install:
- export LD_LIBRARY_PATH=$(pwd)/softfloat-hs/lib
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- travis_retry curl -L https://github.com/gnu-mcu-eclipse/riscv-none-gcc/releases/download/v7.2.0-2-20180110/gnu-mcu-eclipse-riscv-none-gcc-7.2.0-2-20180111-2230-centos64.tgz | tar xz --strip-components=3 -C ~/riscv-gcc gnu-mcu-eclipse/riscv-none-gcc/7.2.0-2-20180111-2230
- sudo apt-get install snapd
- sudo snap install clash

install:
- ./install.sh
# - ./install-clash.sh

script:
- make
- stack --no-terminal --skip-ghc-check exec riscv-semantics-tests
# - ./make-circuit.sh
- ./make-circuit.sh
7 changes: 0 additions & 7 deletions install-clash.sh

This file was deleted.

79 changes: 0 additions & 79 deletions installclash.yml

This file was deleted.

6 changes: 3 additions & 3 deletions make-circuit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
cd src
stack exec -- clash --verilog Platform/Clash.hs


sed Spec/Decode.hs -i -e 's/.*if supports. iset then result. else.*/-- REDACTED to make clash work/g' \
-e 's/.*if bitwidth iset == 64.*/-- REDACTED to make clash work/g'
clash --verilog Platform/Clash.hs
1 change: 1 addition & 0 deletions src/Spec/CSRSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Spec.CSR
import Spec.Machine
import Utility.Utility
import Control.Monad
import Prelude

getCSR :: forall p t . (RiscvMachine p t) => CSR -> p t
getCSR c = do
Expand Down

0 comments on commit df4b581

Please sign in to comment.