• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Quickly schematic-viewing a gates file

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 65
  • Views 16975
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Quickly schematic-viewing a gates file

Almendrico
Almendrico over 9 years ago

Hi all,

I wonder whether it is possible to quickly open an schematic viewer to display a digital gates file

Given I have a .vg (or .v) file and a verilog gates libraries, is there any quick way to open an schematic browser via the command shell ? My only option at the moment is to call simvision and then, once there, send the design to the schematic viewer... Is there something faster, something like below:

$: simvision myfile.vg -y mylibs/tsmc18


Any comments welcome

Thanks

  • Cancel
  • StephenH
    StephenH over 8 years ago

    SimVision has a number of layouts built in that you can specify at the command line, but sadly not a schematic-only one. You can define your own layouts though, so open sSimVision once (no design needed), and open the Schematic Tracer window, close all other windows, and go to the menu Window->Layout->Save and save it as "gates".

    Now you can do this from teh command line:

    irun myfile.vg -y mylibs/tsmc18 -access +rwc -createdebugdb -gui -layout gates

    Explanation: irun is the one-stop front-end which will compile and elaborate your design; -gui opens simvision, and -layout gates tells it to open your saved layout. "-access +rwc" enables schematic connectivity tracing (which would be disabled by default for performance reasons). "-createdebugdb" tells the elaborator to save a special debug database to make SimVision load and trace shcematics quicker.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Almendrico
    Almendrico over 8 years ago
    Thanks Steve

    Couple of comments:
    * irun also needs a timescale directive
    * once the layout windown opens, it is still needed to select the block and 'send to schematic viewer'

    too much setup work involved here ... not exactly what I was looking for
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 8 years ago
    The timescale is only needed if your design has a mixture of modules with and without timescales. If you're not interested in simulating and only want to browse the schematic, just invent a timescale: "-timescale 1ns/1ns".
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Almendrico
    Almendrico over 8 years ago
    I know, I was only saying that there are too many steps involved in just 'viewing' a gates file
    Thanks Stephen
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Doug Koslow
    Doug Koslow over 8 years ago

    In addition to the approach using a layout, one could write a script that passes the top module of the design to the schematic and fills it.  Content of the "schematic_fill.tcl" script is below.

    You would invoke it like:

    irun myfile.vg -y mylibs/tsmc18 -simvisargs "-schematic -input schematic_fill.tcl" +gui -s -access +rwc -createdebugdb

    schematic_fill.tcl:

    # Get the current design, add it to the schematic, and fill it.
    array set info [simcontrol info]
    set scope [lindex [split $info(Design) ":."] 1]

    # Attempt to select it.
    select set -type scope $scope

    # Check if we have something selected.
    if {[select get -type scope] == ""} {
        # Nothing selected. Try selecting ":" scope for VHDL.
        set scope ":"
        select set -type scope $scope
        if {[select get -type scope] == ""} {
            error "Unable to extract top level scope from design."
        }
    }

    # Add the selected scope to the schematic
    schematic add -selected

    # Fill the scope
    schematic invoke Edit>FillModules

    Please give this a try.

    Thanks.

    - Doug

    myfile.vg -y mylibs/tsmc18
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information