Support inline attributes
Problem to solve
tmrg cannot parse source with inline attributes - I think it should
Target audience
Further details
Tested with bba16428 and b2b3297c
Examples that yields an error:
(* ATTRIBUTE = "value" *) module a;
endmodule
module a;
(* ATTRIBUTE = "value" *) reg x;
endmodule
module a (input clk);
endmodule
module b;
wire clk;
(* ATTRIBUTE = "value" *) a a_i(.clk(clk));
endmodule
Proposal
To be discussed, but at least the tmrg should be able to parse it without crashing. In general, I think tmrg should copy attributes to all triplicated constructs.
What does success look like, and how can we measure that?
-
implement test cases -
implementation in tmrg
Edited by Ola Slettevoll Groettvik