| |
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.......
|