Skip to content

Commit

Permalink
Update Scala CLI Template (#3757)
Browse files Browse the repository at this point in the history
* Use "dep" instead of deprecated "lib"
* Add _root_ to `import circt.stage.ChiselStage`
  * Also add comment describing how this disambiguates from
    chisel3.util.circt when the user does `import chisel3.util._`
* Bump versions in Github workflows
  • Loading branch information
jackkoenig authored Jan 22, 2024
1 parent b37180d commit 589f106
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-scala-cli-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- name: Cache Scala-CLI
uses: coursier/cache-action@v6
- name: Setup Scala-CLI
uses: VirtusLab/scala-cli-setup@v0.2.1
uses: VirtusLab/scala-cli-setup@v1
with:
jvm: adoptium:1.17
jvm: adoptium:17
apps: sbt
- name: Generate Scala CLI Template
shell: bash
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
//> using repository "sonatype-s01:snapshots"
//> using scala "2.13.12"
//> using lib "org.chipsalliance::chisel::@VERSION@"
//> using dep "org.chipsalliance::chisel::@VERSION@"
//> using plugin "org.chipsalliance:::chisel-plugin::@VERSION@"
//> using options "-unchecked", "-deprecation", "-language:reflectiveCalls", "-feature", "-Xcheckinit", "-Xfatal-warnings", "-Ywarn-dead-code", "-Ywarn-unused", "-Ymacro-annotations"

import chisel3._
import circt.stage.ChiselStage
// _root_ disambiguates from package chisel3.util.circt if user imports chisel3.util._
import _root_.circt.stage.ChiselStage

class Foo extends Module {
val a, b, c = IO(Input(Bool()))
Expand Down

0 comments on commit 589f106

Please sign in to comment.