unit tests: do not use LFSR16 which has a common seed!
We want each LFSR to generate independent noise.
This commit is contained in:
@ -14,7 +14,7 @@ class TLDelayer(q: Double)(implicit p: Parameters) extends LazyModule
|
||||
|
||||
lazy val module = new LazyModuleImp(this) {
|
||||
def feed[T <: Data](sink: DecoupledIO[T], source: DecoupledIO[T], noise: T) {
|
||||
val allow = UInt((q * 65535.0).toInt) <= LFSR16(source.valid)
|
||||
val allow = UInt((q * 65535.0).toInt) <= LFSRNoiseMaker(16, source.valid)
|
||||
sink.valid := source.valid && allow
|
||||
source.ready := sink.ready && allow
|
||||
sink.bits := source.bits
|
||||
|
Reference in New Issue
Block a user