Class VerilogStrength
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogStrength
-
public final class VerilogStrength extends java.lang.Object
VerilogStrength
represents signal strengths.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerilogStrength.Type
VerilogStrength.Type
contains the strengths.
-
Constructor Summary
Constructors Constructor Description VerilogStrength()
Creates a signal strength.VerilogStrength(VerilogStrength other)
Creates a copy of the signal strength.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerilogStrength
clone()
VerilogStrength.Type
getStrength()
Returns the charge strength.VerilogStrength.Type
getStrength0()
Returns the drive strength for 0.VerilogStrength.Type
getStrength1()
Returns the drive strength for 1.boolean
isHighZ0()
Checks whether the drive strength for 0 isHIGHZ
.boolean
isHighZ1()
Checks whether the drive strength for 1 isHIGHZ
.boolean
isLarge()
Checks whether the charge strength isLARGE
.boolean
isLarge0()
Checks whether the drive strength for 0 isLARGE
.boolean
isLarge1()
Checks whether the drive strength for 1 isLARGE
.boolean
isMedium()
Checks whether the charge strength isMEDIUM
.boolean
isMedium0()
Checks whether the drive strength for 0 isMEDIUM
.boolean
isMedium1()
Checks whether the drive strength for 1 isMEDIUM
.boolean
isPull0()
Checks whether the drive strength for 0 isPULL
.boolean
isPull1()
Checks whether the drive strength for 1 isPULL
.boolean
isSmall()
Checks whether the charge strength isSMALL
.boolean
isSmall0()
Checks whether the drive strength for 0 isSMALL
.boolean
isSmall1()
Checks whether the drive strength for 1 isSMALL
.boolean
isStrong0()
Checks whether the drive strength for 0 isSTRONG
.boolean
isStrong1()
Checks whether the drive strength for 1 isSTRONG
.boolean
isSupply0()
Checks whether the drive strength for 0 isSUPPLY
.boolean
isSupply1()
Checks whether the drive strength for 1 isSUPPLY
.boolean
isWeak0()
Checks whether the drive strength for 0 isWEAK
.boolean
isWeak1()
Checks whether the drive strength for 1 isWEAK
.void
setHighZ0()
Sets the drive strength for 0 toHIGHZ
.void
setHighZ1()
Sets the drive strength for 1 toHIGHZ
.void
setLarge()
Sets the charge strength toLARGE
.void
setLarge0()
Sets the drive strength for 0 toLARGE
.void
setLarge1()
Sets the drive strength for 1 toLARGE
.void
setMedium()
Sets the charge strength toMEDIUM
.void
setMedium0()
Sets the drive strength for 0 toMEDIUM
.void
setMedium1()
Sets the drive strength for 1 toMEDIUM
.void
setPull0()
Sets the drive strength for 0 toPULL
.void
setPull1()
Sets the drive strength for 1 toPULL
.void
setSmall()
Sets the charge strength toSMALL
.void
setSmall0()
Sets the drive strength for 0 toSMALL
.void
setSmall1()
Sets the drive strength for 1 toSMALL
.void
setStrength(VerilogStrength.Type type)
Sets the charge strength.void
setStrength0(VerilogStrength.Type type)
Sets the drive strength for 0.void
setStrength1(VerilogStrength.Type type)
Sets the drive strength for 1.void
setStrong0()
Sets the drive strength for 0 toSTRONG
.void
setStrong1()
Sets the drive strength for 1 toSTRONG
.void
setSupply0()
Sets the drive strength for 0 toSUPLLY
.void
setSupply1()
Sets the drive strength for 1 toSUPPLY
.void
setWeak0()
Sets the drive strength for 0 toWEAK
.void
setWeak1()
Sets the drive strength for 1 toWEAK
.java.lang.String
toString()
-
-
-
Constructor Detail
-
VerilogStrength
public VerilogStrength()
Creates a signal strength.
-
VerilogStrength
public VerilogStrength(VerilogStrength other)
Creates a copy of the signal strength.- Parameters:
other
- the signal strength to be copied.
-
-
Method Detail
-
getStrength0
public VerilogStrength.Type getStrength0()
Returns the drive strength for 0.- Returns:
- the drive strength for 0.
-
setStrength0
public void setStrength0(VerilogStrength.Type type)
Sets the drive strength for 0.- Parameters:
type
- the drive strength for 0.
-
isSupply0
public boolean isSupply0()
Checks whether the drive strength for 0 isSUPPLY
.- Returns:
true
iff the drive strength for 0 isSUPPLY
.
-
isStrong0
public boolean isStrong0()
Checks whether the drive strength for 0 isSTRONG
.- Returns:
true
iff the drive strength for 0 isSTRONG
.
-
isPull0
public boolean isPull0()
Checks whether the drive strength for 0 isPULL
.- Returns:
true
iff the drive strength for 0 isPULL
.
-
isLarge0
public boolean isLarge0()
Checks whether the drive strength for 0 isLARGE
.- Returns:
true
iff the drive strength for 0 isLARGE
.
-
isWeak0
public boolean isWeak0()
Checks whether the drive strength for 0 isWEAK
.- Returns:
true
iff the drive strength for 0 isWEAK
.
-
isMedium0
public boolean isMedium0()
Checks whether the drive strength for 0 isMEDIUM
.- Returns:
true
iff the drive strength for 0 isMEDIUM
.
-
isSmall0
public boolean isSmall0()
Checks whether the drive strength for 0 isSMALL
.- Returns:
true
iff the drive strength for 0 isSMALL
.
-
isHighZ0
public boolean isHighZ0()
Checks whether the drive strength for 0 isHIGHZ
.- Returns:
true
iff the drive strength for 0 isHIGHZ
.
-
setSupply0
public void setSupply0()
Sets the drive strength for 0 toSUPLLY
.
-
setStrong0
public void setStrong0()
Sets the drive strength for 0 toSTRONG
.
-
setPull0
public void setPull0()
Sets the drive strength for 0 toPULL
.
-
setLarge0
public void setLarge0()
Sets the drive strength for 0 toLARGE
.
-
setWeak0
public void setWeak0()
Sets the drive strength for 0 toWEAK
.
-
setMedium0
public void setMedium0()
Sets the drive strength for 0 toMEDIUM
.
-
setSmall0
public void setSmall0()
Sets the drive strength for 0 toSMALL
.
-
setHighZ0
public void setHighZ0()
Sets the drive strength for 0 toHIGHZ
.
-
getStrength1
public VerilogStrength.Type getStrength1()
Returns the drive strength for 1.- Returns:
- the drive strength for 1.
-
setStrength1
public void setStrength1(VerilogStrength.Type type)
Sets the drive strength for 1.- Parameters:
type
- the drive strength for 1.
-
isSupply1
public boolean isSupply1()
Checks whether the drive strength for 1 isSUPPLY
.- Returns:
true
iff the drive strength for 1 isSUPPLY
.
-
isStrong1
public boolean isStrong1()
Checks whether the drive strength for 1 isSTRONG
.- Returns:
true
iff the drive strength for 1 isSTRONG
.
-
isPull1
public boolean isPull1()
Checks whether the drive strength for 1 isPULL
.- Returns:
true
iff the drive strength for 1 isPULL
.
-
isLarge1
public boolean isLarge1()
Checks whether the drive strength for 1 isLARGE
.- Returns:
true
iff the drive strength for 1 isLARGE
.
-
isWeak1
public boolean isWeak1()
Checks whether the drive strength for 1 isWEAK
.- Returns:
true
iff the drive strength for 1 isWEAK
.
-
isMedium1
public boolean isMedium1()
Checks whether the drive strength for 1 isMEDIUM
.- Returns:
true
iff the drive strength for 1 isMEDIUM
.
-
isSmall1
public boolean isSmall1()
Checks whether the drive strength for 1 isSMALL
.- Returns:
true
iff the drive strength for 1 isSMALL
.
-
isHighZ1
public boolean isHighZ1()
Checks whether the drive strength for 1 isHIGHZ
.- Returns:
true
iff the drive strength for 1 isHIGHZ
.
-
setSupply1
public void setSupply1()
Sets the drive strength for 1 toSUPPLY
.
-
setStrong1
public void setStrong1()
Sets the drive strength for 1 toSTRONG
.
-
setPull1
public void setPull1()
Sets the drive strength for 1 toPULL
.
-
setLarge1
public void setLarge1()
Sets the drive strength for 1 toLARGE
.
-
setWeak1
public void setWeak1()
Sets the drive strength for 1 toWEAK
.
-
setMedium1
public void setMedium1()
Sets the drive strength for 1 toMEDIUM
.
-
setSmall1
public void setSmall1()
Sets the drive strength for 1 toSMALL
.
-
setHighZ1
public void setHighZ1()
Sets the drive strength for 1 toHIGHZ
.
-
getStrength
public VerilogStrength.Type getStrength()
Returns the charge strength.- Returns:
- the charge strength.
-
setStrength
public void setStrength(VerilogStrength.Type type)
Sets the charge strength.- Parameters:
type
- the charge strength.
-
isSmall
public boolean isSmall()
Checks whether the charge strength isSMALL
.- Returns:
true
iff the charge strength isSMALL
.
-
isMedium
public boolean isMedium()
Checks whether the charge strength isMEDIUM
.- Returns:
true
iff the charge strength isMEDIUM
.
-
isLarge
public boolean isLarge()
Checks whether the charge strength isLARGE
.- Returns:
true
iff the charge strength isLARGE
.
-
setSmall
public void setSmall()
Sets the charge strength toSMALL
.
-
setMedium
public void setMedium()
Sets the charge strength toMEDIUM
.
-
setLarge
public void setLarge()
Sets the charge strength toLARGE
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public VerilogStrength clone()
- Overrides:
clone
in classjava.lang.Object
-
-