tilelink2 Crossing: these asserts should be done by the AsyncQueue
This commit is contained in:
		| @@ -25,15 +25,10 @@ class TLAsyncCrossingSource(sync: Int = 3) extends LazyModule | |||||||
|       out.a <> ToAsyncBundle(in.a, depth, sync) |       out.a <> ToAsyncBundle(in.a, depth, sync) | ||||||
|       in.d <> FromAsyncBundle(out.d, sync) |       in.d <> FromAsyncBundle(out.d, sync) | ||||||
|  |  | ||||||
|       assert (!in.a.valid || sink_reset_n, "A channel request sent to a missing manager") |  | ||||||
|  |  | ||||||
|       if (bce) { |       if (bce) { | ||||||
|         in.b <> FromAsyncBundle(out.b, sync) |         in.b <> FromAsyncBundle(out.b, sync) | ||||||
|         out.c <> ToAsyncBundle(in.c, depth, sync) |         out.c <> ToAsyncBundle(in.c, depth, sync) | ||||||
|         out.e <> ToAsyncBundle(in.e, depth, sync) |         out.e <> ToAsyncBundle(in.e, depth, sync) | ||||||
|  |  | ||||||
|         assert (!in.c.valid || sink_reset_n, "C channel response sent to a missing manager") |  | ||||||
|         assert (!in.e.valid || sink_reset_n, "E channel response sent to a missing manager") |  | ||||||
|       } else { |       } else { | ||||||
|         in.b.valid := Bool(false) |         in.b.valid := Bool(false) | ||||||
|         in.c.ready := Bool(true) |         in.c.ready := Bool(true) | ||||||
| @@ -63,14 +58,10 @@ class TLAsyncCrossingSink(depth: Int = 8, sync: Int = 3) extends LazyModule | |||||||
|       out.a <> FromAsyncBundle(in.a, sync) |       out.a <> FromAsyncBundle(in.a, sync) | ||||||
|       in.d <> ToAsyncBundle(out.d, depth, sync) |       in.d <> ToAsyncBundle(out.d, depth, sync) | ||||||
|  |  | ||||||
|       assert (!out.d.valid || source_reset_n, "D channel respose sent to missing client") |  | ||||||
|  |  | ||||||
|       if (bce) { |       if (bce) { | ||||||
|         in.b <> ToAsyncBundle(out.b, depth, sync) |         in.b <> ToAsyncBundle(out.b, depth, sync) | ||||||
|         out.c <> FromAsyncBundle(in.c, sync) |         out.c <> FromAsyncBundle(in.c, sync) | ||||||
|         out.e <> FromAsyncBundle(in.e, sync) |         out.e <> FromAsyncBundle(in.e, sync) | ||||||
|  |  | ||||||
|         assert (!out.b.valid || source_reset_n, "B channel request sent to missing client") |  | ||||||
|       } else { |       } else { | ||||||
|         in.b.widx := UInt(0) |         in.b.widx := UInt(0) | ||||||
|         in.c.ridx := UInt(0) |         in.c.ridx := UInt(0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user