• 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. Mixed-Signal Design
  3. File directory if using GUI

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 64
  • Views 11403
  • 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

File directory if using GUI

Hazem Al Indari
Hazem Al Indari over 4 years ago

Hallo,

I am reading from text files in Verilog-AMS and Verilog-A modules, the file do exist in local directory in the same computer that am running the simulations on, and am including this directory in the include directory in using the setup>Simulation Files>include Paths, but for some reason the files is not being found by spectre/ams. If I add the files to the same directory that netlist is found in (automatic Netlist generated by ADE) spectre/ams find the files and the simulation works. 

My question is, how can I add the directory where I would like to have the files using ADE Explorer and I need to work with the GUI? (I can't have the files in the netlist location for some security reasons)

Bests

  • Cancel
  • ShawnLogan
    ShawnLogan over 4 years ago

    Dear Bests,

    Hazem Al Indari said:
    I am reading from text files in Verilog-AMS and Verilog-A modules, the file do exist in local directory in the same computer that am running the simulations on, and am including this directory in the include directory in using the setup>Simulation Files>include Paths, but for some reason the files is not being found by spectre/ams.

    Are you including only the UNIX directory in which the specific files exist? If so, you need to also include the names of the files. As detailed in the Help menu for GUI for including simulation files I show in Figure 1, the paths you indicate in the include paths row entries form the search path (in addition to the netlist directory) for the files you have listed. If you did not include a second line with the name(s) of the files you wanted to include, then the netlister will not include the files you want as it does not know the names of the files.

    Hazem Al Indari said:

    If I add the files to the same directory that netlist is found in (automatic Netlist generated by ADE) spectre/ams find the files and the simulation works. 

    I also circled the relevant Help section for the reason including your files in the netlist directory does allow the netlister to find the files you want to include as simulation files.

    I hope this helps Bests!

    Shawn

    Figure 1

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to ShawnLogan

    I think this should work - specifying the include path should affect all file reads. Can you share how you are reading the files? I'm assuming this is some code in your Verilog-A/Veriilog-AMS module - please provide that part of the code so we can see what you're doing.

    Also, is the path in the Include Path a full path or just "." (I think either should work; just checking exactly how you've specified it). Perhaps if you just share exactly what you specified, that would help.

    I'm not sure this should matter, but it may help to know which simulator version you're using (this will be in the simulator log file).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Hazem Al Indari
    Hazem Al Indari over 4 years ago in reply to Andrew Beckett

    Hi Andrew, 

    I am reading the file using the command ' file=$fopen("file1.txt","r") ' file is defined as an integer. The reading process happens in the initial block. 

    file1.txt is found in folder called includes, so the path is internal_directory_that_cadence_have_full_access_to/includes/file1.txt

    under the Include Paths in Simulation Files panel, the path  internal_directory_that_cadence_have_full_access_to/includes/ is included

    Thanks in Advance 

    Hazem

    • 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