Home > Community > Forums > Logic Design > How can I remove module before writing whole netlist out

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How can I remove module before writing whole netlist out 

Last post Mon, Apr 2 2012 6:22 PM by Maso. 2 replies.
Started by Maso 02 Apr 2012 12:29 AM. Topic has 2 replies and 3307 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Apr 2 2012 12:29 AM

    • Maso
    • Not Ranked
    • Joined on Mon, Mar 26 2012
    • Posts 8
    • Points 115
    How can I remove module before writing whole netlist out Reply

    Hi,

    I have a design top module "top". It have a sub module "add_sub".

    I will write out whole netlist for top, but I don't want to write out add_sub.

    How can I do this?

     Thanks a lot.

    • Post Points: 20
  • Mon, Apr 2 2012 5:58 AM

    • bmiller
    • Top 200 Contributor
    • Joined on Tue, Oct 14 2008
    • Ottawa, Ontario
    • Posts 42
    • Points 570
    Re: How can I remove module before writing whole netlist out Reply

     In RC, you can do the following:

    foreach i [get_attr instances [find / -subdesign add_sub]] {

        set_attr unresolved true $i

    }

    write_hdl > top.vg

     

    The above script finds all instances of add_sub, and sets an "unresolved" attribute on each instance.  This TCL could, of course, be simplified if there is only one instance of add_sub.

    write_hdl will now omit the add_sub module from the netlist.

     

    • Post Points: 5
  • Mon, Apr 2 2012 6:22 PM

    • Maso
    • Not Ranked
    • Joined on Mon, Mar 26 2012
    • Posts 8
    • Points 115
    Re: How can I remove module before writing whole netlist out Reply
    Hi bmiller,

    It works.
    Thanks a lot for your help.


    |---------+---------------------------->
    |         |                            |
    |         |           2012/04/02 下午  |
    |         |           08:59            |
    |         |           Please respond to|
    |         |           ld_forum         |
    |---------+---------------------------->
      >--------------------------------------------------------------------------------------------------------------------------------------------------|
      |                                                                                                                                              |
      |To:maso_chen@tsmc.com                                                                                                                |
      |cc:                                                                                                                                   |
      |Subject:Re: [Logic Design Forum] How can I remove module before writing whole netlist out                                                 |
      >--------------------------------------------------------------------------------------------------------------------------------------------------|



     In RC, you can do the following:


          foreach i [get_attr instances [find / -subdesign add_sub]] {


              set_attr unresolved true $i


          }


    write_hdl > top.vg


    The above script finds all instances of add_sub, and sets an "unresolved" attribute on each instance.  This TCL could, of course, be simplified if there is only one instance of add_sub.


    write_hdl will now omit the add_sub module from the netlist.
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Maso at 02 Apr 2012 12:29 AM. Topic has 2 replies.