Code Monkey home page Code Monkey logo

chisel-lab's People

Contributors

kasperhesse avatar madsmtm avatar martin045k avatar nothinn avatar schoeberl avatar thonner avatar tjarker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chisel-lab's Issues

Examples from Jupyter notebook

I think we should add your exercises as plain Chisel/Scala files with a README.md for the text and not dumping all Jupyter notebook stuff into this repo. There is still the Jupyter repo, we will not delete that one.

Martin

Missing dut.clock.step(1) in lab3 AccuSpec test

When working through the lab, in lab3 I have a failing test for AccuSpec:

[info] AccuSpec:
[info] Accu
[info] Count15Spec:
[info] - should pass *** FAILED ***
[info]   io_dout=0 (0x0) did not equal expected=3 (0x3) (lines in AccuSpec.scala: 7) (AccuSpec.scala:25)

In the AccuSpec.scala file, there is no dut.clock.step(1) between the last poke and expect. Adding this (see the diff below) made the test case stop failing. I do believe that this is the intended behaviour.

diff --git a/lab3/src/test/scala/AccuSpec.scala b/lab3/src/test/scala/AccuSpec.scala
index 9f861dd..47c1376 100644
--- a/lab3/src/test/scala/AccuSpec.scala
+++ b/lab3/src/test/scala/AccuSpec.scala
@@ -21,6 +21,7 @@ class AccuSpec extends AnyFlatSpec with ChiselScalatestTester {
       dut.io.dout.expect(0.U)
       dut.io.setZero.poke(false.B)
       dut.io.din.poke(3.U)
+      dut.clock.step(1)
       dut.io.dout.expect(3.U)
     }
   }

coursier error

curl -Lo coursier https://git.io/coursier
chmod +x coursier

coursier will error
///////////////////////////////////////////////////////////// modify to this
#install coursier: https://get-coursier.io/docs/1.1.0-M10/cli-overview
curl -L -o coursier https://git.io/coursier-cli && chmod +x coursier && ./coursier --help

pip3 install jupyter
export SCALA_VERSION=2.12.8
export ALMOND_VERSION=0.2.1
./coursier bootstrap -r jitpack -i user -I user:sh.almond:scala-kernel-api_$SCALA_VERSION:$ALMOND_VERSION sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION -o almond
./almond --install

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.