object BitPat extends BitPat$Intf
- Source
- BitPat.scala
- Alphabetic
- By Inheritance
- BitPat
- BitPat$Intf
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class fromUIntToBitPatComparable extends SourceInfoDoc
- Definition Classes
- BitPat$Intf
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def N(width: Int = 1): BitPat
Creates a
BitPatof all 0 of the specified bitwidth.Creates a
BitPatof all 0 of the specified bitwidth.val myN = BitPat.N(4) // equivalent to BitPat("b0000")
Example: - def Y(width: Int = 1): BitPat
Creates a
BitPatof all 1 of the specified bitwidth.Creates a
BitPatof all 1 of the specified bitwidth.val myY = BitPat.Y(4) // equivalent to BitPat("b1111")
Example: - def apply(x: EnumType): BitPat
Allows ChiselEnum to be used where a BitPat is expected.
- def apply(x: UInt): BitPat
Allows UInts to be used where a BitPat is expected, useful for when an interface is defined with BitPats but not all cases need the partial matching capability.
Allows UInts to be used where a BitPat is expected, useful for when an interface is defined with BitPats but not all cases need the partial matching capability.
- Note
the UInt must be a literal
- def apply(n: String): BitPat
Creates a
BitPatliteral from a string.Creates a
BitPatliteral from a string.- n
the literal value as a string, in binary, prefixed with 'b'
- Note
legal characters are '0', '1', and '?', as well as '_' and white space (which are ignored)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bitPatToUInt(x: BitPat): UInt
Allows BitPats to be used where a UInt is expected.
Allows BitPats to be used where a UInt is expected.
- Note
the BitPat must not have don't care bits (will error out otherwise)
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dontCare(width: Int): BitPat
Creates a
BitPatof all don't cares of the specified bitwidth.Creates a
BitPatof all don't cares of the specified bitwidth.val myDontCare = BitPat.dontCare(4) // equivalent to BitPat("b????")
Example: - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
This is the documentation for Chisel.
Package structure
The chisel3 package presents the public API of Chisel. It contains the concrete core types
UInt,SInt,Bool,Clock, andReg, the abstract typesBits,Aggregate, andData, and the aggregate typesBundleandVec.The Chisel package is a compatibility layer that attempts to provide chisel2 compatibility in chisel3.
Utility objects and methods are found in the
utilpackage.The
testerspackage defines the basic interface for chisel testers.