Table Of Contents

Previous topic

DigitalBus API

Next topic

Edges API

This Page

Signal API

The Signal is the base class for the DigitalClock, DigitalSignal, and DigitalBus. Any one of these classes can use the methods described below.

Setting Parameters

setName(String sigName)

Sets the name of the signal

mySig.setName("R/W")
setHeight(int sigHeight)

Sets the height, in pixels, of the signal.

myBus.setHeight(30)
setFallTime(double fallTime)

Sets the fall time of every edge in the signal.

myClock.setFallTime(4.0e-9)
setRiseTime(double riseTime)

Sets the rise time of every edge in the signal.

myClock.setRiseTime(4.0e-9)
setStartState(String startState)

Sets the start state of the signal.

myClock.setStartState("L")
setSpaceAbove(int spaceAbove)

Sets the blank space, in pixels, above the signal.

pciClock.setSpaceAbove(50)

Getting Parameters

getName()

Returns a String that is the name of the signal.

busName = pciAddrBus.getName()
getHeight()

Returns an int that is the height of the signal in pixels.

pciAddrBusHeight = pciAddrBus.getHeight()
getFallTime()

Returns a double that is the fall time of the edges in the signal.

fallTime = readSig.getFallTime()
getRiseTime()

Returns a double that is the rise time of the edges in the signal.

riseTime = writeSig.getRiseTime()
getStartState()

Returns a String that is the start state of the signal.

startState = mySig.getStartState()
getSpaceAbove()

Returns an int that is the space above the signal in pixels.

spaceAbove = sig.getSpaceAbove()