• 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 SKILL
  3. Problems with unbound variables inside skill procedure in...

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 144
  • Views 23460
  • 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

Problems with unbound variables inside skill procedure in interactive ocean

angelmariag
angelmariag over 13 years ago

 Hello all,

I have the following issue: I am trying to run an ocean script (diffopamp.ocn) inside an interactive session in a linux shell.

The ocean script diffopamp.ocn have the lines:

load("skillafv.il")

AFVtestInit( "./SPECS/CmirDiffAmp4.spec")

 

 And the script skillafv.il has the procedure:

procedure(AFVtestInit(file "t")
let((ps line key (fp infile(file)) (count 0))
AnalogTests = ’unbound
AnalogTests = makeTable(’AnalogTests nil)
if(fp then
while((line=lineread(fp))
println(line)
count++
;;AnalogTests is equivilent to a record which is indexed on a key
;; that contains a value and two other fields, pass and fail
;; value@keyslot pass fail
ps = line
when(length(ps) < 3
printf("Field formats are:\n testkey m value\n testkey x value\n
testkey r lowerLimit upperLimit\n")
printf("Where testkey is the name of the test.\n character m means
minimum value\n character x means maximum value\n character r means range of
2 values\n")
error("Test specification requires THREE or more fields; line %d\n
contains %s\n"
count line)
)
key = get_pname(car(ps))
AnalogTests[key] = tconc(AnalogTests[key] get_pname(cadr(ps)))
AnalogTests[key] = lconc(AnalogTests[key] cddr(ps))
AnalogTests[key] = lconc(AnalogTests[key] list(0))
AnalogTests[key] = lconc(AnalogTests[key] list(0))
AnalogTests[key] = lconc(AnalogTests[key] list(0))
;;this gets the tconc formatted list and stuffs it in the table
AnalogTests[key] = car(AnalogTests[key])
)
else
error("Cannot OPEN file %s \n" file)
)
)
)

 When I load the ocean script inside the CIW session using: load("diffopamp.ocn") there are no issues, and I can execute the procedure inside the skill script. But when I tried to use an interactive session called in a unix shell, and after typing:

ocean>load("diffopamp.ocn")

 I got the error:

*Error* eval: unbound variable - AnalogTests

Can somebody please help me? 

Best Regards,

Angel

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Insaf,

    The forum guidelines ask you not to append on the end of old threads, and this isn't really related to the previous post. It's unlikely to be anything to do with strange characters in your code.

    My assumption is that you've never defined myTable anywhere. Inside Storage_Results, it's doing myTable[i]=... and so this is trying to store a new table into the index "i" of myTable. Somewhere you'll need to initialize myTable by doing (for example):

    myTable=makeTable("table" 0)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Insaf,

    The forum guidelines ask you not to append on the end of old threads, and this isn't really related to the previous post. It's unlikely to be anything to do with strange characters in your code.

    My assumption is that you've never defined myTable anywhere. Inside Storage_Results, it's doing myTable[i]=... and so this is trying to store a new table into the index "i" of myTable. Somewhere you'll need to initialize myTable by doing (for example):

    myTable=makeTable("table" 0)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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