• 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. Custom IC Design
  3. How to define a parameter representing a path in globel...

Stats

  • Replies 0
  • Subscribers 125
  • Views 21
  • Members are here 0

How to define a parameter representing a path in globel model files?

zuiying
zuiying 3 hours ago

Hello! I contructed my globlal model file and included it in spectre.

The "CZH_toplevel.scs" is written by me and czh_top_tt is a section in it. The codes of CZH_toplevel.scs are as follows.

------------------------------------------------------------------------------------------------
simulator lang=spectre insensitive=yes
library tsmclib

section czh_top_tt
include "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9/cln28hpcp1d8elkv1d02p9shrink0d9embeddedusage.scs" section=ttmacromosmoscap
include "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9/cln28hpcp1d8elkv1d02p9shrink0d9embeddedusage.scs" section=ttresbipdiodisres
include "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9/cln28hpcp1d8elkv1d02p9shrink0d9embeddedusage.scs" section=ttmom
include "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9/cln28hpcp1d8elkv1d02p9shrink0d9embeddedusage.scs" section=ttrmetal
include "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9/cln28hpcphv1d8elkv1d12p1shrink0d9embeddedusage.scs" section=ttmacromosmoscap
include "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9/cln28hpcp1d8elkv1d02p9shrink0d9embeddedusage.scs" section=presimu
include "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9/cln28hpcphv1d8elkv1d12p1shrink0d9embeddedusage.scs" section=presimu
endsection czh_top_tt
------------------------------------------------------------------------------------------------
Because the "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9" folder is readonly for me, I can't create a .scs file in this folder by which I can use the relative path.
Now, I want to construct more sections. But I think the absolute path is really long. Is there any way to define a parameter to represent "/sec/pdk/tsmc/28nHPCPLUS/28HPCPLUSV2103/Models/spectre/V1.02p9" so that I can use this parameter to improve the readability of codes?
Really thanks!

  • Cancel
  • Sign in to reply

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