Closed veripoolbot closed 5 years ago
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"))*/
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
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