The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Nov 8th, 2024, 9:38am
Pages: 1
Send Topic Print
How to parametrize input bits of a DAC in Verilog A code (Read 318 times)
Andrea8888
New Member
*
Offline



Posts: 1

How to parametrize input bits of a DAC in Verilog A code
Oct 06th, 2023, 1:10am
 
Hi All,

as written in the subject, in case i want to leave the number of bits as parameter that user can choose in every run without changing the code ..: how to do it?
Which is the syntax to leave inputs / outputs of an istance as parameter?

Thanks in advance for the help
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2386
Silicon Valley
Re: How to parametrize input bits of a DAC in Verilog A code
Reply #1 - Oct 6th, 2023, 10:22am
 
Take a look at https://designers-guide.org/verilog-ams/functional-blocks/data-converter/convert...
er-lrm.vams

However, be aware that you cannot use such a model in a Cadence schematic.  Schematics do not allow the number of lines in a wire to be variable.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.