tilelink2 Fuzzer: only generate legal atomics
This commit is contained in:
parent
f5d604d8f8
commit
7636e772c8
@ -138,7 +138,8 @@ class TLFuzzer(
|
|||||||
// Increment random number generation for the following subfields
|
// Increment random number generation for the following subfields
|
||||||
val inc = Wire(Bool())
|
val inc = Wire(Bool())
|
||||||
val inc_beat = Wire(Bool())
|
val inc_beat = Wire(Bool())
|
||||||
val arth_op = noiseMaker(3, inc)
|
val arth_op_3 = noiseMaker(3, inc)
|
||||||
|
val arth_op = Mux(arth_op_3 > UInt(4), UInt(4), arth_op_3)
|
||||||
val log_op = noiseMaker(2, inc)
|
val log_op = noiseMaker(2, inc)
|
||||||
val amo_size = UInt(2) + noiseMaker(1, inc) // word or dword
|
val amo_size = UInt(2) + noiseMaker(1, inc) // word or dword
|
||||||
val size = noiseMaker(sizeBits, inc)
|
val size = noiseMaker(sizeBits, inc)
|
||||||
|
Loading…
Reference in New Issue
Block a user