• 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. read a file .csv and .mat with verilog-A

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 64
  • Views 13066
  • 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

read a file .csv and .mat with verilog-A

Hagar Hendy
Hagar Hendy over 2 years ago

I am new with Verilog A. I want to write code with Verilog A that could read weights with extension (.mat) that generated from tensor flow, to upload that as file written by Verilog A, as well as to read a file with .csv file that can read inputs or the dataset. How to do that?

i already draw a schematic in cadence , what i need is that how i could connect the values of the input that come from another file to my circuit and the weights value.(mat) that come also from another file that represent conductance.

  • Cancel
  • ShawnLogan
    ShawnLogan over 2 years ago in reply to Hagar Hendy

    Dear Hagar Hendy,

    Hagar Hendy said:
    but when i press on the link that you mentioned, this screen comes and i am not able to do anything with that page

    You need to contact whomever administers your Cadence tools and request the information to conplete this form.I highly suggest you follow throgh and set up an account as there is a wealth of information available that I think will be both interesting and helpful to you. For example, the URL I provided is a link to the current the verilog-A reference manual.

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 2 years ago in reply to ShawnLogan

    Dear Hagar Hendy,

    Hagar Hendy said:
    also, i run the code, but this is the output is shown as below they are all zeros, so this is mean that it read text file  wrong, what i did is that i opened a text file and i put random number with commas and i rename it as .csv ,is that works? 

    You really have not provided me with enough information to give you a specific answer. For example, what random numbers (posiitive/negative/integers/fractional)? and how many per line? Did you save the file as a UNIX file? Did you include the filename as the verilog-A input filename?

    If you are trying to duplicate the result, perhaps you should use the example file I used in the note and follow the exact instructions I used.

    Shawn

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

    Dear Hagar Hendy,

    In addition to the useful suggestions from Shawn, you can also access the Verilog-A documentation entirely within your software - use <SPECTREinstDir>/bin/cdnshelp - it is all shipped with the software. So you may not even need to connect to the support site (although resolving that would be a good idea anyway).

    Regards,

    Andrew

    • 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