-
Notifications
You must be signed in to change notification settings - Fork 24
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
CoreIR Changes/Fixes #607
base: master
Are you sure you want to change the base?
CoreIR Changes/Fixes #607
Conversation
- Modified Module Declaration so that modules can now be generated with empty parameter lists (when generators require no parameters). Added ASSERT statements to ensure that other exceptions are still caught. - Modified RemoveBulkConnections pass so that a BitInOut type is recognized as a Bit Type.
Modified the Makefile of CoreIR with a Debug flag, in order to allow debugging with GDB.
Modified `verilog` pass of CoreIR so that the default generator parameter values are propagated to the Verilog writer.
Removed all unnecessary comments.
@@ -9,6 +9,7 @@ TARGET = dylib | |||
prefix?=/usr/local | |||
endif | |||
|
|||
COREDEBUG = True |
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.
I don't think should be checked in, seems like a debugging setting for yourself? FYI you can pass this as a flag to make, e.g. make COREDEBUG=1
, rather than setting it in the file explicitly
@@ -27,7 +28,7 @@ CFLAGS = -Wall -fPIC | |||
CXXFLAGS = -std=c++11 -Wall -fPIC -Werror | |||
|
|||
ifdef COREDEBUG | |||
CXXFLAGS += -O0 -g3 -D_GLIBCXX_DEBUG | |||
CXXFLAGS += -O0 -g3 |
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.
What's the reason for this removal?
// return false; | ||
// } | ||
// } | ||
// } |
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.
Can you submit the code in the comments as a separate PR? Or you could include it in this PR, but it would be good to include a test case that shows what this fixes.
Makes changes to the CoreIR library.
Main changes:
RemoveBulkConnections
: Fixed a bug where inouts were not recognized as bit connectionsaddDefaultGenArgs
: Fixed a bug where the default parameters were not being propagated to the Verilog writer.Module
: Made changes to Module constructor, so that Modules can be generated with emptygenargs
, for greater flexibility.