You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Seq] FIFO: permit any type and add read latency (#7810)
- Makes $input and $output allow any type rather than just a bit vector.
- Adds read latency attribute to specify the number of cycles after
which rdEn is asserted that data appears in the output.
Copy file name to clipboardExpand all lines: test/Dialect/Seq/lower-fifo.mlir
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ hw.module @fifo1(in %clk : !seq.clock, in %rst : i1, in %in : i32, in %rdEn : i1
47
47
}
48
48
49
49
50
-
// CHECK: hw.module @fifo2(in %[[CLOCK:.*]] : !seq.clock, in %[[VAL_1:.*]] : i1, in %[[VAL_2:.*]] : i32, in %[[VAL_3:.*]] : i1, in %[[VAL_4:.*]] : i1, out out : i32, out empty : i1, out full : i1, out almost_empty : i1, out almost_full : i1) {
50
+
// CHECK: hw.module @fifo2(in %[[CLOCK:.*]] : !seq.clock, in %[[VAL_1:.*]] : i1, in %[[VAL_2:.*]] : [[TY:.+]], in %[[VAL_3:.*]] : i1, in %[[VAL_4:.*]] : i1, out out : [[TY]], out empty : i1, out full : i1, out almost_empty : i1, out almost_full : i1) {
51
51
// CHECK: %[[VAL_5:.*]] = hw.constant 2 : i3
52
52
// CHECK: %[[VAL_8:.*]] = hw.constant -1 : i3
53
53
// CHECK: %[[VAL_7:.*]] = hw.constant true
@@ -57,11 +57,11 @@ hw.module @fifo1(in %clk : !seq.clock, in %rst : i1, in %in : i32, in %rdEn : i1
0 commit comments