jba*_*ter 5 chisel rocket-chip
我今天更新了火箭芯片,并注意到FIRRTL现在这样说:
------------------------------------------------------------------------------
Warning: firrtl.Driver is deprecated since 1.2!
Please switch to firrtl.stage.FirrtlStage
------------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
好的,很公平,我想我们必须更新传递给FIRRTL的内容:
FIRRTL ?= java -Xmx3G -Xss8M -XX:MaxPermSize=256M $(FIRRTL_PROFILE_SWITCH) -cp $(FIRRTL_JAR) firrtl.Driver
Run Code Online (Sandbox Code Playgroud)
但是,天真地切换firrtl.Driver
到firrtl.stage.FirrtlStage
它不起作用:
Error: Main method not found in class firrtl.stage.FirrtlStage, please define the main method as:
public static void main(String[] args)
Run Code Online (Sandbox Code Playgroud)
为了避免此过时警告,我们应该怎么做?
这是我的错,弃用警告需要更新。firrtl.stage.FirrtlMain
如果您愿意,您可以(可选)切换到。请参阅freechipsproject/rocket-chip#1984了解如何更新 Rocket Chip。我将在 FIRRTL 方面获取 PR 来修复此问题。
FirrtlStage
和之间存在一些变化FirrtlMain
。原因是并非每个阶段都必须有主要功能。
如果您想了解有关 Chisel、FIRRTL 和相关项目的整个 Stage/Phase 重构的更多信息,请参阅freechipsproject/FIRRTL#1005和(尚未合并)freechipsproject/FIRRTL#1079。