Skip to content

Commit

Permalink
tilelink2 Fuzzer: support read-only mode (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
terpstra authored Feb 12, 2017
1 parent 5fc44bb commit abe344a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/scala/uncore/tilelink2/Fuzzer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class TLFuzzer(
noiseMaker: (Int, Bool, Int) => UInt = {
(wide: Int, increment: Bool, abs_values: Int) =>
LFSRNoiseMaker(wide=wide, increment=increment)
}
)(implicit p: Parameters) extends LazyModule
},
noModify: Boolean = false)(implicit p: Parameters) extends LazyModule
{
val node = TLClientNode(TLClientParameters(sourceId = IdRange(0,inFlight)))

Expand Down Expand Up @@ -169,10 +169,10 @@ class TLFuzzer(

val legal = legal_dest && MuxLookup(a_type_sel, glegal, Seq(
UInt("b000") -> glegal,
UInt("b001") -> pflegal,
UInt("b010") -> pplegal,
UInt("b011") -> alegal,
UInt("b100") -> llegal,
UInt("b001") -> (pflegal && !Bool(noModify)),
UInt("b010") -> (pplegal && !Bool(noModify)),
UInt("b011") -> (alegal && !Bool(noModify)),
UInt("b100") -> (llegal && !Bool(noModify)),
UInt("b101") -> hlegal))

val bits = MuxLookup(a_type_sel, gbits, Seq(
Expand Down

0 comments on commit abe344a

Please sign in to comment.