All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spinal.lib.bus.regif.Field.scala Maven / Gradle / Ivy

There is a newer version: 1.10.2a
Show newest version
package spinal.lib.bus.regif

import spinal.core._

case class Field(name: String,
                 hardbit: BaseType,
                 section: Range,
                 accType: AccessType,
                 resetValue: Long,
                 readError: Boolean,
                 doc: String) extends FieldDescr {
  private var _name = name

  def tailBitPos = section.max

  // FieldDescr implementation
  def getName()       : String     = _name
  def setName(name: String): Field = {_name = name ; this}
  def getWidth()      : Int        = hardbit.getBitsWidth
  def getSection()    : Range      = section
  def getAccessType() : AccessType = accType
  def getResetValue() : Long       = resetValue
  def getDoc()        : String     = doc
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy