Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Will there be a chiseltest 6.0.0? #699

Closed
schoeberl opened this issue Jan 9, 2024 · 16 comments
Closed

Will there be a chiseltest 6.0.0? #699

schoeberl opened this issue Jan 9, 2024 · 16 comments

Comments

@schoeberl
Copy link
Member

The verification story of new Chisel (CIRCT) needs more hands to move forward.

@ekiwi
Copy link
Collaborator

ekiwi commented Jan 9, 2024

There currently is a 6.0-SNAPSHOT. Once Chisel 6 is released and I have some free time, I was planning on taking whatever we have at that point in 6.0-SNAPSHOT and putting it into a 6.0.0 release.

Note: chiseltest 6.0.0 won't be using CIRCT though which will limit access to some of the newer features.

@schoeberl
Copy link
Member Author

Great! I know that chiseltest (6.0) is not using CIRCT, but it will keep testing alive as it is. We need some more manpower for the verification side on new Chisel.

@gonsolo
Copy link

gonsolo commented Jan 20, 2024

As I said in chipsalliance/chisel#3746 I hope this gets resolved. Also my hope is that in the future chisel 7 would get released together with chiseltest 7 and chisel-template 7!

@kammoh
Copy link
Contributor

kammoh commented Feb 9, 2024

@gonsolo
Could you please give the latest 6.0-SNAPSHOT a try? #705 should probably have resolved that issue.

@ezhes
Copy link

ezhes commented Feb 11, 2024

Is 6.0-SNAPSHOT released somewhere? Not sure how to actually get it, doesn't appear in any package repositories:

[error] stack trace is suppressed; run last update for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading edu.berkeley.cs:chiseltest_2.13:6.0-SNAPSHOT
[error]   Not found
[error]   Not found
[error]   not found: /home/xxx/.ivy2/localedu.berkeley.cs/chiseltest_2.13/6.0-SNAPSHOT/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/edu/berkeley/cs/chiseltest_2.13/6.0-SNAPSHOT/chiseltest_2.13-6.0-SNAPSHOT.pom
[error] Total time: 3 s, completed Feb 10, 2024, 6:47:10 PM

@ekiwi
Copy link
Collaborator

ekiwi commented Feb 11, 2024

You need to have the snapshot resolver enabled in your build.sbt:

resolvers ++= Resolver.sonatypeOssRepos("snapshots"),

I am still planning to release 6.0, just have been pretty busy recently.

@gonsolo
Copy link

gonsolo commented Feb 14, 2024

@gonsolo Could you please give the latest 6.0-SNAPSHOT a try? #705 should probably have resolved that issue.

I changed chiselVersion to 6.0.0, chiseltest to 6.0-SNAPSHOT, and the following error occurs with 'sbt test':

[info] java.lang.NoClassDefFoundError: chisel3/internal/firrtl/Width
[info] at chiseltest.package$testableBool.poke(package.scala:34)
[info] at chiseltest.package$testableData.pokeInternal(package.scala:197)
[info] at chiseltest.package$testableData.poke(package.scala:171)

I had local firtool version 1.37.0, but upgrading to 1.65.0 didn't change the error.

@rameloni
Copy link

There currently is a 6.0-SNAPSHOT. Once Chisel 6 is released and I have some free time, I was planning on taking whatever we have at that point in 6.0-SNAPSHOT and putting it into a 6.0.0 release.

Note: chiseltest 6.0.0 won't be using CIRCT though which will limit access to some of the newer features.

@ekiwi so, will chiseltest 6.0.0 keep using the same elaboration steps of chiseltest 5? SFC instead of firtool?

@gonsolo
Copy link

gonsolo commented Feb 28, 2024

This might be of interest: chipsalliance/chisel#3746 (comment)

@rameloni
Copy link

rameloni commented Feb 28, 2024

This might be of interest: chipsalliance/chisel#3746 (comment)

@gonsolo I see. Then what cases are users supposed to use chiseltest instead of chiselsim? What are the advantages of using chiseltest?

However, this is something pretty recent, it was published yesterday.

@gonsolo
Copy link

gonsolo commented Feb 28, 2024

@gonsolo I see. Then what cases are users supposed to use chiseltest instead of chiselsim? What are the advantages of using chiseltest?

None. My (fairly basic) understanding is this: chiseltest will go away, you have svsim which is based on verilator, and now ChiselSim on top of svsim which provides a similar experience as chiseltest (peek & poke, more advanced things like fork/join maybe in the making).

However, this is something pretty recent, it was published yesterday.

Let's see how it's going to evolve.

@rameloni
Copy link

eek & poke, more advanced things like fork/join maybe in the making).

I quickly checked it and I don't see also the support for waveform emission.

@gonsolo
Copy link

gonsolo commented Feb 28, 2024

I quickly checked it and I don't see also the support for waveform emission.

You can do this in Verilator, I guess it's just a matter of adding some support for that in ChiselSim and svsim.

Again, I just glanced over this yesterday and I might be wrong.

(But if I'm right I believe patches would be welcome. 😄)

@rameloni
Copy link

I think I got it, it seems that EphemeralSimulator is just a super simple lightweight simulator that just executes verilator.

@ekiwi
Copy link
Collaborator

ekiwi commented Feb 28, 2024

Here we go! Finally a 6.0.0 release: https://github.com/ucb-bar/chiseltest/releases/tag/v6.0.0

@ekiwi ekiwi closed this as completed Feb 28, 2024
@schoeberl
Copy link
Member Author

Very good! I will try it out tomorrow.

Gratulations on your ASPLOS paper! Nice work and nice reading.

Cheers,
Martin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants