Coder Social home page Coder Social logo

Comments (7)

chick avatar chick commented on June 14, 2024

Sorry to hear this. I suspect this is some sort of mismatched versioning problem. I was able to able run. After the following steps on a machine like this
Linux a6 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
After the following steps

rm -rf ~/.ivy2/cache/edu.berkeley.cs//*
rm -rf ~/.ivy2/local/edu.berkeley.cs//*
mkdir workspace
cd workspace
git clone https://github.com/ucb-bar/chisel-tutorial.git
./run-examples.sh

So questions:
Are your running the release branch or the master branch (release is the default)
Have you tried clearing the dependencies, as with the rm commands shown?

from chisel-tutorial.

MahdiNazemi avatar MahdiNazemi commented on June 14, 2024

Thank you for your prompt reply. I followed the steps you mentioned and the problem is gone. However, running the following commands was not enough.

rm -rf ~/.ivy2/cache/edu.berkeley.cs/*
rm -rf ~/.ivy2/local/edu.berkeley.cs/*

I had to remove the local repo and clone again to solve the issue.

Do you know what could have been different between my local copy and the release branch that caused this issue? I get the same errors in my own chisel projects and would like to know how to solve them.

from chisel-tutorial.

chick avatar chick commented on June 14, 2024

Sorry for the delay, I've been asking around here. I think it's likely related to change in the Module hierarchy #469. Do you have sharable code that exhibits the problem

from chisel-tutorial.

MahdiNazemi avatar MahdiNazemi commented on June 14, 2024

Sorry for my late reply. Attached, please find the implementation of floating-point multiplication.

The testing mechanism is similar to the TutorialRunner in this package, so the commands will look like this:
sbt
test:run-main easi.Launcher FPMul

from chisel-tutorial.

MahdiNazemi avatar MahdiNazemi commented on June 14, 2024

One of the differences I noticed is that the line
import Chisel.iotesters.{ChiselFlatSpec, Driver, PeekPokeTester}
in previous implementations is changed to
import chisel3.iotesters.{ChiselFlatSpec, Driver, PeekPokeTester}.

But even after applying the same modification, I get
object iotesters is not a member of package chisel3.

from chisel-tutorial.

MahdiNazemi avatar MahdiNazemi commented on June 14, 2024

After making the change mentioned in the previous comment, I did
rm -rf ~/.ivy2/cache/edu.berkeley.cs/*
rm -rf ~/.ivy2/local/edu.berkeley.cs/*
sbt clean
and the issue is gone.

So I guess the issue was related to both mismatched versions and changing Chisel to chisel3 in import statements.

from chisel-tutorial.

chick avatar chick commented on June 14, 2024

@MahdiNazemi
Glad to hear it, I just compiled it all here and I think you got it.

  • Definitely try to use import chisel3._ instead of capital chisel.
  • I found it difficult to have sbt sort things out given the directory hierarchy. I'd recommend using the layout found in the chisel-template repo. I think it's a bit convoluted for very simple tests but the tools have expectations and conventions and they work better the more those are kept too
  • sbt, does a lot of caching, after I had move things around, it seemed to take an exit from the sbt shell and a clean command before things started working

from chisel-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.