RegMapper: Update cover props to use new RegFieldDesc objects
This commit is contained in:
parent
4ab1585a78
commit
7abf6e1c8a
@ -144,10 +144,13 @@ object RegMapper
|
|||||||
val (f_wiready, f_wovalid) = field.write.fn(f_wivalid, f_woready, data(high, low))
|
val (f_wiready, f_wovalid) = field.write.fn(f_wivalid, f_woready, data(high, low))
|
||||||
|
|
||||||
// cover reads and writes to register
|
// cover reads and writes to register
|
||||||
cover(f_rivalid && f_riready, field.name + "_Reg_read_start", field.description + " RegField Read Request Initiate")
|
val fname = field.desc.map{_.name}.getOrElse("")
|
||||||
cover(f_rovalid && f_roready, field.name + "_Reg_read_out", field.description + " RegField Read Request Complete")
|
val fdesc = field.desc.map{_.desc + ":"}.getOrElse("")
|
||||||
cover(f_wivalid && f_wiready, field.name + "_Reg_write_start", field.description + " RegField Write Request Initiate")
|
|
||||||
cover(f_wovalid && f_woready, field.name + "_Reg_write_out", field.description + " RegField Write Request Complete")
|
cover(f_rivalid && f_riready, fname + "_Reg_read_start", fdesc + " RegField Read Request Initiate")
|
||||||
|
cover(f_rovalid && f_roready, fname + "_Reg_read_out", fdesc + " RegField Read Request Complete")
|
||||||
|
cover(f_wivalid && f_wiready, fname + "_Reg_write_start", fdesc + " RegField Write Request Initiate")
|
||||||
|
cover(f_wovalid && f_woready, fname + "_Reg_write_out", fdesc + " RegField Write Request Complete")
|
||||||
|
|
||||||
def litOR(x: Bool, y: Bool) = if (x.isLit && x.litValue == 1) Bool(true) else x || y
|
def litOR(x: Bool, y: Bool) = if (x.isLit && x.litValue == 1) Bool(true) else x || y
|
||||||
// Add this field to the ready-valid signals for the register
|
// Add this field to the ready-valid signals for the register
|
||||||
|
Loading…
Reference in New Issue
Block a user