Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.31 KB

readme.org

File metadata and controls

59 lines (46 loc) · 1.31 KB

Chisel Example by Wit and Wake

SBT flow

  • This is simple sbt project for Chisel3, which can be run as:
sbt 'testOnly Syntax.NullTester'

So how can we just run this in Wake flow?

Wake flow

Install Wit

git clone [email protected]:sifive/wit.git </path/to/wit>

Install Wake

Currently use this link https://1288-148184315-gh.circle-artifacts.com/0/tmp/workspace/ubuntu_18_04/wake_0.15.0-1_amd64.deb

wget https://1288-148184315-gh.circle-artifacts.com/0/tmp/workspace/ubuntu_18_04/wake_0.15.0-1_amd64.deb
sudo dpkg -i wake_0.15.0-1_amd64.deb

Setup environment variables

export WAKE_PATH=</path/to/java>
export PATH=</path/to/wit>:</path/to/java>:$PATH

Get the repo

wit init example-chisel-wake -a [email protected]:davidmlw/example-chisel-wake.git

Init the wake project

cd example-chisel-wake
wake --init .

Run the project

wake 'runTest "syntax.NullTester"'

Try different error types

uncomment lines in src/test/Syntax.scala and check different results.

//  assert(0)
//  assert(false)