Comments (2)
I'm not 100% sure if I get what you want to do. In general I think the easiest setup is using the clash-starters or something close to it which I expect should sidestep this issue since it uses the same GHC version for everything.
from clash-compiler.
I agree with Rowan, I think you should generally house your Clash design in a starter project. I am also not 100% sure if this is your question.
That said, for quick one-off tests, I do have this:
$ cat ~/.local/bin/clash-1.8
#!/bin/sh
unset DIR
DIR="$(pwd)"
cd ~/src/clash/clash-one-eight
stack run --cwd "$DIR" clash -- "$@"
$ cat ~/.local/bin/clashi-1.8
#!/bin/sh
unset DIR
DIR="$(pwd)"
cd ~/src/clash/clash-one-eight
stack run --cwd "$DIR" clashi -- "$@"
It helps me to run a freestanding .hs
file with a Clash design. The dir clash-one-eight
is just an empty starter project, made with
$ stack new clash-one-eight clash-lang/simple
$ cd clash-one-eight
$ stack build
from clash-compiler.
Related Issues (20)
- ILA uncomfortable to use when using many probes HOT 1
- Clash.Signal.Delayed.feedback is wrong
- VIO uncomfortable to use when using many probes
- Clash doesn't clear `Id` scopes when rendering different modules
- Behaves differently: `zipWith3 f a b c` / `f <$> a <*> b <*> c` HOT 3
- Clash doesn't handle `DataTag (CustomSum ...)` expressions
- Add `reverseBV` to clash prelude HOT 1
- stringsearch is abandoned HOT 1
- GHC's strictness analysis can be confusing in combination with black boxes HOT 1
- Verilog fromEnum doesn't sign extend properly
- Shifting bits to 0-length `BitVector`s fails
- Enabling -O2 breaks Clash.Magic.clashSimulation HOT 7
- Dubious primitive instantiation for `GHC.Num.Integer.integerToInt#` when using `xpmCdcHandshake` HOT 1
- Support sequential HDL generation
- Don't terminate Verilog simulator on error in assertion functions
- `Clash.Util.Interpolate.i` inserts extra newline on reflow
- `OverridingBool` prevents auto derivation of various classes HOT 2
- 8b/10b decoder sometimes decodes garbage as valid data HOT 2
- More efficient 8b/10b line coding
- On the release of `clash-cores` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clash-compiler.