I've updated rocket-chip today and noticed that FIRRTL now says this:
------------------------------------------------------------------------------
Warning: firrtl.Driver is deprecated since 1.2!
Please switch to firrtl.stage.FirrtlStage
------------------------------------------------------------------------------
Okay, fair enough, I presume we have to update what we pass to the invocation of FIRRTL:
FIRRTL ?= java -Xmx3G -Xss8M -XX:MaxPermSize=256M $(FIRRTL_PROFILE_SWITCH) -cp $(FIRRTL_JAR) firrtl.Driver
However naively switching firrtl.Driver
to firrtl.stage.FirrtlStage
didn't work:
Error: Main method not found in class firrtl.stage.FirrtlStage, please define the main method as:
public static void main(String[] args)
What should we do to avoid this deprecation warning?