OpenAccess Contributed ReUse Library
OA Contribution - Software - ReUse Code
Summary  |  Forums  |  News

 
Browse Library | New Contribution

Contribution Detail

Derive class from managed oaObject
Author Forum Language License CoO
Si2 Browse - Post C++ Apache License, Version 2.0 (shrinkwrap) None Provided
Description:
This code derives a class from oaScalarNet for the purpose of adding
a convenience method to the class that will get an Array of all the
ParasiticNetworks on the Net (a set that is not directly available
from the Net class). The derivation encapsulates the algorithm to
find these Networks as a class method.

Versions of this Contribution:

ID Download Version(s) Downloads Date Posted
41 oa22.04 (22.04p007 DM4) 18 2008-08-21 13:39
  README Notes:
This code derives a class from oaScalarNet for the purpose of adding
a convenience method to the class that will get an Array of all the
ParasiticNetworks on the Net (a set that is not directly available
from the Net class). The derivation encapsulates the algorithm to
find these Networks as a class method.

1. Unpack the tarball.

2. cd to the resulting directory.

3. Edit the Makefile to set up the environment

4. Type: make run

5. Verify output looks like this:

  ASSERT [PASS] SUCCESS_SYS == system("rm -rf LibDir; mkdir LibDir")
  ASSERT [PASS] (lib = oaLib::create(scNameLib, "LibDir", oacSharedLibMode, "oaDMFileSys"))->isValid()
  ASSERT [PASS] (designHA = oaDesign::open(scNameLib, scNameHA, scNameView, vt, 'w' ))->isValid()
  ASSERT [PASS] (netA->getName(ns,str),str) == "netA"
  ASSERT [PASS] (netB->getName(ns,str),str) == "netB"
  ASSERT [PASS] numPNs == expectedPNs
ParasiticNetworks on netA =  0x40eafa92  0x40eafa93  0x40eafa94  0x40eafa95  0x40eafa96
  ASSERT [PASS] numPNs == expectedPNs
ParasiticNetworks on netA =  0x40eafa97  0x40eafa98  0x40eafa99  0x40eafa9a  0x40eafa9b
  ASSERT [PASS] static_cast(netA)->isSi2net()
  ASSERT [PASS] !static_cast(netB)->isSi2net()
Net 'netA' color = green
Net 'netB' color = NONE (not an si2ScalarNet)
.........end.......

Versions of a Contribution are set by the owner as the most recent OpenAccess release the contribution was successfully built or tested with.
A contributor can:
  • Update their contribution with a new OA release version of the code.
  • OR Delete a previous version. (Basically replace with a more recent version).




 
Copyright © 2005-2010
Silicon Integration Initiative, Inc (Si2)
All rights reserved
Site Map
How to Get an Account
Contact Si2
Contact Site Admin
Legal Notice/Disclaimer