Skip to content

Commit

Permalink
Add prefix for difftest (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
fawangZ authored and Siudya committed Jul 22, 2024
1 parent 90256ca commit c9dc015
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion difftest
1 change: 1 addition & 0 deletions src/main/scala/top/Top.scala
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ class XSTop()(implicit p: Parameters) extends BaseXSSoc() with HasSoCParameter {
object TopMain extends App {
val (config, firrtlOpts) = ArgParser.parse(args)
xs.utils.GlobalData.prefix = config(PrefixKey)
difftest.GlobalData.prefix = config(PrefixKey)
val soc = DisableMonitors(p => LazyModule(new XSTop()(p)))(config)
(new XiangShanStage).execute(firrtlOpts, Seq(
FirtoolOption("-O=release"),
Expand Down
1 change: 1 addition & 0 deletions src/test/scala/top/SimTop.scala
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ object SimTop extends App {
// Keep this the same as TopMain except that SimTop is used here instead of XSTop
val (config, firrtlOpts) = ArgParser.parse(args)
xs.utils.GlobalData.prefix = config(PrefixKey)
difftest.GlobalData.prefix = config(PrefixKey)
(new XiangShanStage).execute(firrtlOpts, Seq(
FirtoolOption("-O=release"),
FirtoolOption("--disable-all-randomization"),
Expand Down

0 comments on commit c9dc015

Please sign in to comment.