Skip to content
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

defines and compile order #39

Open
mikrofyr opened this issue May 24, 2022 · 1 comment
Open

defines and compile order #39

mikrofyr opened this issue May 24, 2022 · 1 comment

Comments

@mikrofyr
Copy link

mikrofyr commented May 24, 2022

Is it possible to add support for in-order/global defines?

#mydefines.sv:

// This would take presedence until undef, or new value defined
`define DW=32

#mymodule.sv

// Define from previous compiles are available, unless undef
module mymodule (
 input [`DW-1:0] data
);
endmodule

morty mydefine.sv mymodule.sv

@Cyberwizzard
Copy link

+1 from me

I'm working on a pre-parser which extracts the defines and feeds them to Morty, but it's a bit odd to do this in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants