Skip to content

Techmapping to Infer Parameters #4891

Answered by KrystalDelusion
malifarooq asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not very familiar with techmap, but the error you're seeing is raised when trying to assign a parameter to a module which doesn't have that parameter. I think this might be something to do with the names of modules? The following appears to work correctly:

read_verilog <<EOF
module top();
(* keep *)
top_secret mod2 ();

endmodule
EOF

read_verilog -lib -specify <<EOF
(* whitebox *)
module super_mod();
parameter MODE = 2'b00;

/*_dummy functionality here_*/
endmodule
EOF

hierarchy -top top
proc
techmap -map <<EOF
module top_secret();
   super_mod #(.MODE(2'b00)) _TECHMAP_REPLACE_ ();
endmodule
EOF

stat

This maps the top_secret module in top so that the final stat call shows a single s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@malifarooq
Comment options

Answer selected by malifarooq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants