class SFix extends XFix[SFix, SInt]
- Alphabetic
- By Inheritance
- SFix
- XFix
- MinMaxDecimalProvider
- MultiData
- Data
- InComponent
- OverridedEqualsHashCode
- SpinalTagReady
- Assignable
- NameableByComponent
- Nameable
- OwnableRef
- ContextUser
- ScalaLocated
- GlobalDataUser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SFix(maxExp: Int, bitCount: Int)
Type Members
-
abstract
type
RefOwnerType
- Definition Classes
- OwnableRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
##(right: Data): Bits
Concatenation between two data
Concatenation between two data
- Definition Classes
- Data
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
#*(count: Int): Bits
- Definition Classes
- Data
- def *(that: SFix): SFix
- def +(that: SFix): SFix
- def -(that: SFix): SFix
- def :=(that: BigInt): Unit
- def :=(that: BigDecimal): Unit
- def :=(that: Float): Unit
- def :=(that: Long): Unit
- def :=(that: Int): Unit
- def <(that: BigDecimal): Bool
- def <(that: SFix): Bool
- def <<(that: Int): SFix
- def <<|(that: Int): SFix
- def <=(that: BigDecimal): Bool
- def <=(that: SFix): Bool
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: BigDecimal): Bool
- def >(that: SFix): Bool
- def >=(that: BigDecimal): Bool
- def >=(that: SFix): Bool
- def >>(that: Int): SFix
- def >>|(that: Int): SFix
-
def
IFparent: Data
- Definition Classes
- Data
-
val
_spinalTags: LinkedHashSet[SpinalTag]
- Definition Classes
- SpinalTagReady
-
def
addAttribute(attribute: Attribute): SFix.this.type
- Definition Classes
- Data → SpinalTagReady
-
def
addAttribute(name: String, value: Int): SFix.this.type
- Definition Classes
- SpinalTagReady
-
def
addAttribute(name: String, value: String): SFix.this.type
- Definition Classes
- SpinalTagReady
-
def
addAttribute(name: String): SFix.this.type
- Definition Classes
- SpinalTagReady
-
def
addTag[T <: SpinalTag](spinalTag: T): SFix.this.type
- Definition Classes
- MultiData → SpinalTagReady
-
def
addTags(h: SpinalTag, tail: SpinalTag*): SFix.this.type
- Definition Classes
- SpinalTagReady
-
def
addTags[T <: SpinalTag](tags: Iterable[T]): SFix.this.type
- Definition Classes
- SpinalTagReady
-
def
alignLsb(that: SFix): (SInt, SInt)
- Definition Classes
- XFix
-
def
allowDirectionLessIo(): SFix.this.type
Allow a Data of an io Bundle to be directionless
Allow a Data of an io Bundle to be directionless
See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/iobundle.html
- Definition Classes
- Data
-
def
allowOverride(): SFix.this.type
Allow a Data to be overriden
Allow a Data to be overriden
See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/assignment_overlap.html
- Definition Classes
- Data
-
def
allowPartialyAssigned(): SFix.this.type
Allow a register to be partially assigned
Allow a register to be partially assigned
- Definition Classes
- Data
-
def
allowPruning(): SFix.this.type
- Definition Classes
- Data
-
def
allowSimplifyIt(): SFix.this.type
- Definition Classes
- Data
-
def
allowUnsetRegToAvoidLatch(): SFix.this.type
Allow a register to have only an init (no assignments)
Allow a register to have only an init (no assignments)
See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/unassigned_register.html#register-with-only-init
- Definition Classes
- Data
-
def
as[T <: Data](dataType: HardType[T]): T
- Definition Classes
- Data
-
def
asBits: Bits
Cast data to Bits
-
def
asData: Data
- Definition Classes
- Data
-
def
asInOut(): SFix.this.type
set a data as inout
-
def
asInput(): SFix.this.type
Set a data as input
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asOutput(): SFix.this.type
Set a data as output
-
def
assignDontCare(): SFix.this.type
- Definition Classes
- Data
-
def
assignDontCareToUnasigned(): SFix.this.type
- Definition Classes
- Data
- def assignFormalRandom(kind: RandomExpKind): Unit
-
final
def
assignFrom(that: AnyRef, target: AnyRef = this)(implicit loc: Location): Unit
- Definition Classes
- Data
- def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit
- def assignFromBits(bits: Bits): Unit
-
def
assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
- Definition Classes
- Data
-
def
assignFromImpl(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
- Attributes
- protected
- Definition Classes
- XFix → Assignable
-
def
assignUnassignedByName(that: MultiData): Unit
- Definition Classes
- MultiData
- def autoConnect(that: Data)(implicit loc: Location): Unit
-
val
bitCount: Int
- Definition Classes
- XFix
-
def
clearAll(): SFix.this.type
- Definition Classes
- Data
- def clone(): SFix.this.type
-
def
component: Component
- Definition Classes
- ContextUser
-
final
def
compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
- Definition Classes
- Assignable
-
val
compositeAssign: Assignable
- Definition Classes
- Assignable
- def copyDirectionOfImpl(that: Data): SFix.this.type
-
def
difLsb(that: SFix): Int
- Definition Classes
- XFix
-
def
dirString(): String
- Definition Classes
- Data
-
def
doAddSub(that: SFix, sub: Boolean): SFix
- Definition Classes
- XFix
-
def
doShiftLeft(that: Int): SFix
- Definition Classes
- XFix
-
def
doShiftLeftBorned(that: Int): SFix
- Definition Classes
- XFix
-
def
doShiftRight(that: Int): SFix
- Definition Classes
- XFix
-
def
doShiftRightBorned(that: Int): SFix
- Definition Classes
- XFix
-
def
doSmaller(that: SFix): Bool
- Definition Classes
- XFix
-
def
doSmallerEguals(that: SFix): Bool
- Definition Classes
- XFix
-
def
dontSimplifyIt(): SFix.this.type
- Definition Classes
- Data
- def elements: ArrayBuffer[(String, Data)]
-
def
elementsString: String
- Definition Classes
- MultiData
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- OverridedEqualsHashCode → AnyRef → Any
-
def
existsTag(cond: (SpinalTag) ⇒ Boolean): Boolean
- Definition Classes
- SpinalTagReady
-
def
filterTag(cond: (SpinalTag) ⇒ Boolean): Iterable[SpinalTag]
- Definition Classes
- SpinalTagReady
-
def
find(name: String): Data
- Definition Classes
- MultiData
-
def
findTag(cond: (SpinalTag) ⇒ Boolean): Option[SpinalTag]
- Definition Classes
- SpinalTagReady
- def fixFactory(maxExp: ExpNumber, resolution: ExpNumber): SFix
- def fixFactory(maxExp: ExpNumber, bitCount: BitCount): SFix
- def fixFactory(maxExp: Int, bitCount: Int): SFix
- def flatten: Seq[BaseType]
- def flattenForeach(body: (BaseType) ⇒ Unit): Unit
- def flattenLocalName: Seq[String]
-
def
flip(): SFix.this.type
flip the direction of the data
-
def
foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
- Definition Classes
- Nameable
-
def
foreachTag(body: (SpinalTag) ⇒ Unit): Unit
- Definition Classes
- SpinalTagReady
- def freeze(): SFix.this.type
-
def
getAheadValue(): SFix.this.type
For a register, get the value it will have at the next clock, as a combinational signal.
For a register, get the value it will have at the next clock, as a combinational signal.
- Definition Classes
- Data
-
def
getBitsWidth: Int
Return the width of the data
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getComponent(): Component
- Definition Classes
- Data → InComponent → NameableByComponent
-
def
getComponents(): Seq[Component]
Get current component with all parents
Get current component with all parents
- Definition Classes
- InComponent
-
def
getDirection: IODirection
- Definition Classes
- Data
-
def
getDisplayName(): String
- Definition Classes
- Nameable
-
def
getInstanceCounter: Int
- Definition Classes
- ContextUser
-
def
getMode: Byte
- Attributes
- protected
- Definition Classes
- Nameable
- def getMuxType[M <: Data](list: TraversableOnce[M]): HardType[M]
-
def
getName(default: String): String
- Definition Classes
- NameableByComponent → Nameable
-
def
getName(): String
- Definition Classes
- NameableByComponent → Nameable
-
def
getPartialName(): String
- Definition Classes
- Nameable
-
def
getPath(from: Component, to: Component): Seq[Component]
- Definition Classes
- NameableByComponent
-
def
getRealSource: Any
- Definition Classes
- Assignable
-
def
getRealSourceNoRec: Any
- Definition Classes
- Data → Assignable
-
def
getRefOwnersChain(): List[Any]
- Definition Classes
- OwnableRef
-
def
getRootParent: Data
- Definition Classes
- Data
-
def
getRtlPath(separator: String = "/"): String
- Definition Classes
- Data
-
def
getScalaLocationLong: String
- Definition Classes
- ScalaLocated
-
def
getScalaLocationShort: String
- Definition Classes
- ScalaLocated
-
def
getScalaTrace(): Throwable
- Definition Classes
- ScalaLocated
-
def
getTag[T <: SpinalTag](clazz: Class[T]): Option[T]
- Definition Classes
- SpinalTagReady
-
def
getTags(): LinkedHashSet[SpinalTag]
- Definition Classes
- SpinalTagReady
-
def
getZero: SFix.this.type
Create a data set to 0
-
val
globalData: GlobalData
- Definition Classes
- GlobalDataUser
-
def
hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
- Definition Classes
- SpinalTagReady
-
def
hasTag(spinalTag: SpinalTag): Boolean
- Definition Classes
- SpinalTagReady
-
def
hashCode(): Int
- Definition Classes
- OverridedEqualsHashCode → AnyRef → Any
- def init(that: BigDecimal): SFix.this.type
-
final
def
initFrom(that: AnyRef, target: AnyRef = this): Unit
- Definition Classes
- Data
-
def
instanceAttributes(language: Language): Iterable[Attribute]
- Definition Classes
- SpinalTagReady
-
def
instanceAttributes: Iterable[Attribute]
- Definition Classes
- SpinalTagReady
-
def
isAnalog: Boolean
- Definition Classes
- Data
-
def
isComb: Boolean
- Definition Classes
- Data
-
def
isCompletelyUnnamed: Boolean
- Definition Classes
- Nameable
-
def
isDirectionLess: Boolean
- Definition Classes
- Data
-
def
isEmptyOfTag: Boolean
- Definition Classes
- SpinalTagReady
-
def
isInOut: Boolean
- Definition Classes
- Data
-
def
isInput: Boolean
- Definition Classes
- Data
-
def
isInputOrInOut: Boolean
- Definition Classes
- Data
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isNamed: Boolean
- Definition Classes
- Nameable
-
def
isOutput: Boolean
- Definition Classes
- Data
-
def
isOutputOrInOut: Boolean
- Definition Classes
- Data
-
def
isPriorityApplicable(namePriority: Byte): Boolean
- Definition Classes
- Nameable
-
def
isReg: Boolean
- Definition Classes
- Data
-
def
isRegOnAssign: Boolean
- Definition Classes
- Data
-
def
isUnnamed: Boolean
- Definition Classes
- NameableByComponent → Nameable
-
val
maxExp: Int
- Definition Classes
- XFix
-
def
maxValue: BigDecimal
- Definition Classes
- SFix → MinMaxDecimalProvider
- def minExp: Int
-
def
minValue: BigDecimal
- Definition Classes
- SFix → MinMaxDecimalProvider
-
val
name: String
- Definition Classes
- Nameable
- val nameableRef: Nameable
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
noBackendCombMerge(): SFix.this.type
Put the combinatorial logic driving this signal in a separate process
Put the combinatorial logic driving this signal in a separate process
- Definition Classes
- Data
-
def
noCombLoopCheck(): SFix.this.type
Disable combinatorial loop checking for this Data
Disable combinatorial loop checking for this Data
See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/combinatorial_loop.html
- Definition Classes
- Data
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit
- Definition Classes
- SpinalTagReady
-
def
overrideLocalName(name: String): SFix.this.type
- Definition Classes
- Nameable
-
val
parent: Data
- Definition Classes
- Data
-
val
parentScope: ScopeStatement
- Definition Classes
- ContextUser
-
def
pull(propagateName: Boolean): SFix.this.type
- Definition Classes
- Data
-
def
pull(): SFix.this.type
Pull a signal to the top level (use for debugging)
Pull a signal to the top level (use for debugging)
- Definition Classes
- Data
-
def
purify(): SFix.this.type
- Definition Classes
- Data
-
def
randBoot(u: Unit): SFix.this.type
Useful for register that doesn't need a reset value in RTL, but need a random value for simulation (avoid x-propagation)
Useful for register that doesn't need a reset value in RTL, but need a random value for simulation (avoid x-propagation)
- Definition Classes
- Data
-
val
raw: SInt
- Definition Classes
- XFix
- def rawFactory(maxExp: Int, bitCount: Int): SInt
-
val
refOwner: RefOwnerType
- Definition Classes
- OwnableRef
- Annotations
- @DontName()
-
def
reflectNames(): Unit
- Definition Classes
- Nameable
-
def
removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): SFix.this.type
- Definition Classes
- Data
-
def
removeDataAssignments(): SFix.this.type
- Definition Classes
- Data
-
def
removeInitAssignments(): SFix.this.type
- Definition Classes
- Data
-
def
removeTag(spinalTag: SpinalTag): SFix.this.type
- Definition Classes
- SpinalTagReady
-
def
removeTags(tags: Iterable[SpinalTag]): SFix.this.type
- Definition Classes
- SpinalTagReady
-
def
resized: SFix.this.type
Resized data regarding target
Resized data regarding target
- Definition Classes
- Data
- def resolution: BigDecimal
-
def
rootIF(): Interface
root interface
root interface
- Definition Classes
- Data
-
def
rootIFList(): List[Interface]
- Definition Classes
- Data
-
def
rootIFrec(now: Data, lastRoot: List[Interface]): List[Interface]
- Definition Classes
- Data
-
val
scalaTrace: Throwable
- Definition Classes
- ScalaLocated
-
def
setAll(): SFix.this.type
- Definition Classes
- Data
-
def
setAsAnalog(): SFix.this.type
- Definition Classes
- Data
-
def
setAsComb(): SFix.this.type
Set baseType to Combinatorial
-
def
setAsDirectionLess(): SFix.this.type
remove the direction (in,out,inout) to a data
-
def
setAsReg(): SFix.this.type
Set baseType to reg
-
def
setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): SFix.this.type
- Definition Classes
- Nameable
-
def
setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): SFix.this.type
- Definition Classes
- Nameable
-
def
setCompositeName(nameable: Nameable, postfix: String): SFix.this.type
- Definition Classes
- Nameable
-
def
setCompositeName(nameable: Nameable, namePriority: Byte): SFix.this.type
- Definition Classes
- Nameable
-
def
setCompositeName(nameable: Nameable, weak: Boolean): SFix.this.type
- Definition Classes
- Nameable
-
def
setCompositeName(nameable: Nameable): SFix.this.type
- Definition Classes
- Nameable
-
def
setLambdaName(isNameBody: ⇒ Boolean)(nameGen: ⇒ String): SFix.this.type
- Definition Classes
- Nameable
-
def
setName(name: String, namePriority: Byte): SFix.this.type
- Definition Classes
- Nameable
-
def
setName(name: String, weak: Boolean): SFix.this.type
- Definition Classes
- Nameable
-
def
setName(name: String): SFix.this.type
- Definition Classes
- Nameable
-
def
setNameAsWeak(): SFix.this.type
- Definition Classes
- Nameable
-
def
setOutputAsReg(): SFix.this.type
Recursively set baseType to reg only for output
Recursively set baseType to reg only for output
- Definition Classes
- Data
-
def
setPartialName(name: String, namePriority: Byte, owner: Any): SFix.this.type
- Definition Classes
- Nameable
-
def
setPartialName(name: String, namePriority: Byte): SFix.this.type
- Definition Classes
- Nameable
-
def
setPartialName(name: String, weak: Boolean): SFix.this.type
- Definition Classes
- Nameable
-
def
setPartialName(owner: Nameable, name: String, namePriority: Byte): SFix.this.type
- Definition Classes
- Nameable
-
def
setPartialName(owner: Nameable, name: String, weak: Boolean): SFix.this.type
- Definition Classes
- Nameable
-
def
setPartialName(name: String): SFix.this.type
- Definition Classes
- Nameable
-
def
setPartialName(owner: Nameable, name: String): SFix.this.type
- Definition Classes
- Nameable
-
def
setPartialName(owner: Nameable): SFix.this.type
- Definition Classes
- Nameable
-
def
setRefOwner(that: Any): Unit
- Definition Classes
- OwnableRef
-
def
setScalaLocated(source: ScalaLocated): SFix.this.type
- Definition Classes
- ScalaLocated
-
def
setWeakName(name: String): SFix.this.type
- Definition Classes
- Nameable
-
def
spinalTags: LinkedHashSet[SpinalTag]
- Definition Classes
- SpinalTagReady
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toIo(): SFix.this.type
- Definition Classes
- Data
- def toMuxInput[M <: Data](muxOutput: M): M
- def toSInt: SInt
- def toString(): String
-
def
truncated(maxExp: ExpNumber, resolution: ExpNumber): SFix
- Definition Classes
- XFix
-
def
truncated(maxExp: ExpNumber, bitCount: BitCount): SFix
- Definition Classes
- XFix
-
def
truncated: SFix.this.type
- Definition Classes
- XFix
- def unfreeze(): SFix.this.type
-
def
unsetName(): SFix.this.type
- Definition Classes
- Nameable
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
wrapNext(): SFix.this.type
- Definition Classes
- Data
-
def
zipByName(that: MultiData, rec: ArrayBuffer[(BaseType, BaseType)] = ArrayBuffer()): ArrayBuffer[(BaseType, BaseType)]
- Definition Classes
- MultiData
Deprecated Value Members
-
def
asDirectionLess(): SFix.this.type
- Definition Classes
- Data
- Annotations
- @deprecated
- Deprecated
(Since version ???) use setAsDirectionLess instead
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
genIf(cond: Boolean): SFix.this.type
Generate this if condition is true
Generate this if condition is true
- Definition Classes
- Data
- Annotations
- @deprecated
- Deprecated
does not work with <>, use 'someBool generate Type()' or 'if(condition) Type() else null' instead