1
0

Moved RenEn to ChiselUtil

This commit is contained in:
Henry Cook 2013-08-12 22:18:25 -07:00
parent 1a9e43aa11
commit d9b3c7cfc8

View File

@ -176,20 +176,6 @@ class CtrlFPUIO extends Bundle {
val sboard_clra = UInt(INPUT, 5)
}
object RegEn
{
def apply[T <: Data](data: T, en: Bool) = {
val r = Reg(data)
when (en) { r := data }
r
}
def apply[T <: Bits](data: T, en: Bool, resetVal: T) = {
val r = RegReset(resetVal)
when (en) { r := data }
r
}
}
class FPToInt extends Module
{
class Input extends Bundle {