5

我今天更新了rocket-chip,注意到FIRRTL现在这样说:

------------------------------------------------------------------------------
Warning: firrtl.Driver is deprecated since 1.2!
Please switch to firrtl.stage.FirrtlStage
------------------------------------------------------------------------------

好吧,很公平,我认为我们必须更新我们传递给 FIRRTL 调用的内容:

FIRRTL ?= java -Xmx3G -Xss8M -XX:MaxPermSize=256M $(FIRRTL_PROFILE_SWITCH)  -cp $(FIRRTL_JAR) firrtl.Driver

然而天真地切换firrtl.Driverfirrtl.stage.FirrtlStage没有用:

Error: Main method not found in class firrtl.stage.FirrtlStage, please define the main method as:
   public static void main(String[] args)

我们应该怎么做才能避免这种弃用警告?

4

1 回答 1

4

这是我的错,需要更新弃用警告。如果您愿意,您可以(可选)切换到firrtl.stage.FirrtlMain。有关如何更新 Rocket Chip 的信息,请参见freechipsproject/rocket-chip#1984 。我会在 FIRRTL 方面得到一个 PR 来解决这个问题。

FirrtlStage和之间有一些变化FirrtlMain。原因是并非每个阶段都必须具有主要功能。

如果您想了解有关通过 Chisel、FIRRTL 和相关项目渗透的整个 Stage/Phase 重构的更多信息,请参阅freechipsproject/FIRRTL#1005和(尚未合并)freechipsproject/FIRRTL#1079

于 2019-06-06T03:31:38.167 回答