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

multiple instantiations of a module #1410

Closed
veripoolbot opened this issue Mar 23, 2019 · 2 comments
Closed

multiple instantiations of a module #1410

veripoolbot opened this issue Mar 23, 2019 · 2 comments
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: kishore babu nainappagari
Original Redmine Issue: 1410 from https://www.veripool.org


Hi Wilson,

I would like to instantiate a module N times (N >= 2000) in another module like below.

adder inst1 ( .in1(in1), in2(in2),out(out));
...
adder inst1000 ( .in1(in1), in2(in2),out(out));

I tried generating 5 instantiations using AUTOINSERTLISP and AUTOINST like below but it was flagging an error.

May I pls know if there's a better way to do it

/AUTOINSERTLISP(insert (shell-command-to-string " foreach n ( 1 2 3 4 5 ) adder instn (/AUTOINST/ "))/

Pls suggest.

rgds
Kishore

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-03-23T11:29:25Z


The */ you are trying to insert is taken to end the AUTO, split it. Also avoid calling the shell to make it faster and portable.

/*AUTOINSERTLISP(dotimes (i 5) (insert "  adder instn (/" "*AUTOINST*" "/);\n"))*/

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: kishore babu nainappagari
Original Date: 2019-03-23T17:31:17Z


Hi Wilson,
Thank you so much for your prompt response

rgds
Kishore

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

No branches or pull requests

1 participant