-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update rocket-chip again #33
Conversation
FIRRTL_JAR ?= $(ROCKETCHIP_DIR)/firrtl/utils/bin/firrtl.jar | ||
FIRRTL ?= java -Xmx2G -Xss8M -XX:MaxPermSize=256M -cp $(FIRRTL_JAR) firrtl.Driver | ||
FIRRTL ?= java -Xmx2G -Xss8M -XX:MaxPermSize=256M -cp $(ROCKETCHIP_JAR):$(FIRRTL_JAR) firrtl.Driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way is to use a classpath wildcard to avoid hardcoding the JAR filename: -cp $(lib_dir)/*:$(FIRRTL_JAR)
My understanding of chipsalliance/rocket-chip@8f3009f is that ROCKET_CLASSES sets the BlackBox path and obviates the need to set rocketchip_vsrc_dir |
No, ROCKET_CLASSES just sets the classpath so that FIRRTL can find the transformations to match the annotations. I've not yet figured out how the new BlackBox resources thing works. |
@grebe ? |
So, the current state that things are in is a little bit weird. I had a big PR that updated several different things all at once:
This was a lot to digest, so they got broken up and are still in the process of getting reviewed, merged, etc. The current state of rocketchip is that:
Rocket's build system still hasn't been updated to actually use these generated files, though. I'm using rocket as a library for things like queues and tilelink masters, etc., so rocket's build system doesn't really impact me (but it is way easier for me now that the blackboxes get emitted), but you guys have some decisions to make. If you want to be as much like rocket currently is right now, you should have references to vsrc/csrc and ignore the verilog/cpp that gets emitted by firrtl (other than your top level verilog file, of course). If you want to do things the "right way", you can look at how I did it with makefiles in my big PR. It was kind of fragile, so I wouldn't recommend it unless you like getting fancy with makefiles. Does that help? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MTS.
Yeah, let's stick with the way rocket-chip does it for now. |
No description provided.