-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can I generate verilog without sbt ? #143
Comments
Unfortunately, pulling the chisel3 JAR from Maven is not enough since it doesn't contain all the dependencies of Chisel. (Those JARs are referred to as 'fat jars'.) Thankfully there is another option to enable single-file Chisel designs without sbt, and you can check out the demo here: https://github.com/edwardcwang/chisel-single-file By default though we still recommend the full Chisel template as it provides a standardized structure for building and testing your designs. |
@edwardcwang, thanks for your reply, it works. |
Many Scala tools including ammonite and sbt use |
amm has downloaded dependency jar file from maven. I copy all .jar to ./lib and scalac again. I got the same eror again :( :( |
Unfortunately for most real development projects, trying to collect all the non-fat JARs manually isn't very feasible, which is why tools like maven, sbt, and ammonite sprung up. See https://stackoverflow.com/questions/3589562/why-maven-what-are-the-benefits for an example of the sorts of issues involved. |
This looks to me like the pesky In ammonite, the magic incantation is |
We could make a mill |
thanks all for your reply. amm give me an error,
then I add powershell to cygwin PATH var, amm run ok. I found default home directory, all .jar file downloaded in the position, they are different directory !! |
I'm not sure what's going on there as I am not a windows user. I think we generally advise windows users to use WSL- sometimes it is necessary to use verilator for simulations, and verilator on windows is tricky unless you use WSL. I suspect it would also resolve the issues you're seeing. |
bad things ! we can't leave sbt. |
I'd suggest starting with chisel-bootcamp. The examples are newer and it is the primary place to learn chisel. It should get you going without any need to use sbt. |
God blessing ! I create a repo on 'https://github.com/balanx/chisel-make'. |
could someone help me to solve the error ? thanks first.
I don't like sbt very much, and try to transform *.scala to *.v as below:
$ scalac -classpath lib/chisel3_2.12-3.1.6.jar -d classes GCD.scala
I got error.
src\intro\GCD.scala:23: error: value load is not a member of chisel3.Bundle when (io.load) { ^ src\intro\GCD.scala:24: error: value a is not a member of chisel3.Bundle x := io.a; y := io.b ^ src\intro\GCD.scala:24: error: value b is not a member of chisel3.Bundle x := io.a; y := io.b ^ src\intro\GCD.scala:33: error: value out is not a member of chisel3.Bundle io.out := x ^ src\intro\GCD.scala:34: error: value valid is not a member of chisel3.Bundle io.valid := y === 0.U ^
GCD.scala
The text was updated successfully, but these errors were encountered: