Skip to content

Commit

Permalink
Update SpinalHDL to 1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mtvec committed Sep 20, 2022
1 parent 3314d45 commit f0e74d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name := "Proteus"
version := "0.1"

scalaVersion := "2.11.12"
val spinalVersion = "1.6.0"
val spinalVersion = "1.7.3"

fork := true

Expand Down
8 changes: 1 addition & 7 deletions src/main/scala/riscv/Stage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ class Stage(val stageName: String) extends Component {
* connection even when output() is called inside a conditional statement.
*/
private def reworkOutsideConditionScope[T](rtl: => T) = {
val body = Component.current.dslBody
body.push()
val swapContext = body.swap()
val ret = rework(rtl)
body.pop()
swapContext.appendBack()
ret
Utils.outsideConditionScope(rework(rtl))
}
}
4 changes: 2 additions & 2 deletions src/main/scala/riscv/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ object Utils {

def outsideConditionScope[T](rtl: => T): T = {
val body = Component.current.dslBody
body.push()
val ctx = body.push()
val swapContext = body.swap()
val ret = rtl
body.pop()
ctx.restore()
swapContext.appendBack()
ret
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/riscv/plugins/RiscvFormal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class RiscvFormal(altops: Boolean = false) extends Plugin[Pipeline] with FormalS
prevRvfi := currentRvfi
}

val rvfi = out(new Rvfi).keep()
val rvfi = out(new Rvfi).dontSimplifyIt()
rvfi := prevRvfi
rvfi.pc_wdata.allowOverride
rvfi.pc_wdata := currentRvfi.pc_rdata
Expand Down

0 comments on commit f0e74d7

Please sign in to comment.