Skip to content

Commit

Permalink
[MLIR] Omit version comment by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rsetaluri committed Aug 30, 2023
1 parent 4592ee0 commit 011ee97
Show file tree
Hide file tree
Showing 169 changed files with 89 additions and 173 deletions.
2 changes: 1 addition & 1 deletion magma/backend/mlir/compile_to_mlir_opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ class CompileToMlirOpts:
disallow_expression_inlining_in_ports: bool = False
disallow_local_variables: bool = False
split_verilog: bool = False
omit_version_comment: bool = False
omit_version_comment: bool = True
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/aggregate_constant.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @aggregate_constant() -> (y: !hw.struct<x: i8, y: i4>) {
%0 = hw.constant 0 : i8
%1 = hw.constant 0 : i4
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/aggregate_constant.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module aggregate_constant(
output struct packed {logic [7:0] x; logic [3:0] y; } y
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @aggregate_mux_wrapper(%a: !hw.struct<x: i8, y: i1>, %s: i1) -> (y: !hw.struct<x: i8, y: i1>) {
%0 = hw.struct_extract %a["x"] : !hw.struct<x: i8, y: i1>
%2 = hw.constant -1 : i8
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/aggregate_mux_wrapper.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module aggregate_mux_wrapper(
input struct packed {logic [7:0] x; logic y; } a,
input s,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @aggregate_mux_wrapper(%a: !hw.struct<x: i8, y: i1>, %s: i1) -> (y: !hw.struct<x: i8, y: i1>) {
%0 = hw.struct_extract %a["x"] : !hw.struct<x: i8, y: i1>
%2 = hw.constant -1 : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module aggregate_mux_wrapper(
input struct packed {logic [7:0] x; logic y; } a,
input s,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @aggregate_mux_wrapper(%a_x: i8, %a_y: i1, %s: i1) -> (y_x: i8, y_y: i1) {
%1 = hw.constant -1 : i8
%0 = comb.xor %1, %a_x : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module aggregate_mux_wrapper(
input [7:0] a_x,
input a_y,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @aggregate_mux_wrapper(%a_x: i8, %a_y: i1, %s: i1) -> (y_x: i8, y_y: i1) {
%1 = hw.constant -1 : i8
%0 = comb.xor %1, %a_x : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module aggregate_mux_wrapper(
input [7:0] a_x,
input a_y,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_aggregates_nested_array(%a: !hw.array<2x!hw.array<3xi4>>) -> (y: !hw.array<2x!hw.array<3xi4>>) {
%1 = hw.constant 0 : i1
%0 = hw.array_get %a[%1] : !hw.array<2x!hw.array<3xi4>>, i1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_aggregates_nested_array(
input [1:0][2:0][3:0] a,
output [1:0][2:0][3:0] y
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/complex_bind.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_bind_asserts(%I: !hw.struct<I: i1>, %O: i1, %CLK: i1, %I0: i1) -> () {
%0 = hw.struct_extract %I["I"] : !hw.struct<I: i1>
sv.verbatim "assert property (@(posedge CLK) {{1}} |-> ##1 {{0}});assert property ({{1}} |-> {{2}};" (%O, %0, %I0) : i1, i1, i1
Expand Down
2 changes: 0 additions & 2 deletions tests/test_backend/test_mlir/golds/complex_bind.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_bind_asserts(
input struct packed {logic I; } I,
input O,
Expand Down Expand Up @@ -26,7 +25,6 @@ endmodule

// ----- 8< ----- FILE "bindfile.sv" ----- 8< -----

// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
bind complex_bind complex_bind_asserts complex_bind_asserts_inst (
.I (I),
.O (Register_inst0),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_bind_asserts(%I_I: i1, %O: i1, %CLK: i1, %I0: i1) -> () {
sv.verbatim "assert property (@(posedge CLK) {{1}} |-> ##1 {{0}});assert property ({{1}} |-> {{2}};" (%O, %I_I, %I0) : i1, i1, i1
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_bind_asserts(
input I_I,
O,
Expand Down Expand Up @@ -26,7 +25,6 @@ endmodule

// ----- 8< ----- FILE "bindfile.sv" ----- 8< -----

// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
bind complex_bind complex_bind_asserts complex_bind_asserts_inst (
.I_I (I_I),
.O (Register_inst0),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_inline_verilog(%I: i12, %CLK: i1) -> (O: i12) {
%1 = sv.reg name "Register_inst0" : !hw.inout<i12>
sv.alwaysff(posedge %CLK) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_inline_verilog(
input [11:0] I,
input CLK,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_inline_verilog2(%I: i12, %CLK: i1) -> (O: i12) {
%1 = sv.reg name "Register_inst0" : !hw.inout<i12>
sv.alwaysff(posedge %CLK) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_inline_verilog2(
input [11:0] I,
input CLK,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/complex_lut.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @LUT(%I: i2) -> (O: !hw.array<2x!hw.struct<x: i8, y: i1>>) {
%1 = hw.constant 0 : i1
%2 = hw.constant 1 : i1
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/complex_lut.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module LUT(
input [1:0] I,
output struct packed {logic [7:0] x; logic y; }[1:0] O
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @simple_magma_protocol(%I: i8) -> (O: i8) {
hw.output %I : i8
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module simple_magma_protocol(
input [7:0] I,
output [7:0] O
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_mixed_direction_ports(%a_0_x: i8, %a_1_x: i8, %a_2_x: i8, %a_3_x: i8, %a_4_x: i8, %a_5_x: i8, %a_6_x: i8, %a_7_x: i8, %b_y: i8) -> (a_0_y: i8, a_1_y: i8, a_2_y: i8, a_3_y: i8, a_4_y: i8, a_5_y: i8, a_6_y: i8, a_7_y: i8, b_x: i8) {
%0 = hw.constant 0 : i8
%1 = hw.constant 0 : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_mixed_direction_ports(
input [7:0] a_0_x,
a_1_x,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @simple_mixed_direction_ports(%a_x: i8) -> (a_y: i8) {
hw.output %a_x : i8
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module simple_mixed_direction_ports(
input [7:0] a_x,
output [7:0] a_y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_register_wrapper(%a: !hw.struct<x: i8, y: i1>, %b: !hw.array<6xi16>, %CLK: i1, %CE: i1, %ASYNCRESET: i1) -> (y: !hw.struct<u: !hw.struct<x: i8, y: i1>, v: !hw.array<6xi16>>) {
%1 = sv.reg name "Register_inst0" : !hw.inout<!hw.struct<x: i8, y: i1>>
sv.alwaysff(posedge %CLK) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_register_wrapper(
input struct packed {logic [7:0] x; logic y; } a,
input [5:0][15:0] b,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_register_wrapper(%a: !hw.struct<x: i8, y: i1>, %b: !hw.array<6xi16>, %CLK: i1, %CE: i1, %ASYNCRESET: i1) -> (y: !hw.struct<u: !hw.struct<x: i8, y: i1>, v: !hw.array<6xi16>>) {
%1 = sv.reg name "Register_inst0" : !hw.inout<!hw.struct<x: i8, y: i1>>
sv.alwaysff(posedge %CLK) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_register_wrapper(
input struct packed {logic [7:0] x; logic y; } a,
input [5:0][15:0] b,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @Register(%I: !hw.struct<x: i8, y: i1>, %CE: i1, %CLK: i1, %ASYNCRESET: i1) -> (O: !hw.struct<x: i8, y: i1>) {
%1 = comb.extract %0 from 1 : (i9) -> i1
%2 = comb.extract %0 from 2 : (i9) -> i1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module Register(
input struct packed {logic [7:0] x; logic y; } I,
input CE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_register_wrapper(%a_x: i8, %a_y: i1, %b: !hw.array<6xi16>, %CLK: i1, %CE: i1, %ASYNCRESET: i1) -> (y_u_x: i8, y_u_y: i1, y_v: !hw.array<6xi16>) {
%2 = sv.reg name "Register_inst0" : !hw.inout<i8>
sv.alwaysff(posedge %CLK) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_register_wrapper(
input [7:0] a_x,
input a_y,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/complex_undriven.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_undriven() -> (O: !hw.struct<x: i8, y: i1>) {
%1 = sv.wire sym @complex_undriven.undriven_inst0 : !hw.inout<i8>
%0 = sv.read_inout %1 : !hw.inout<i8>
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/complex_undriven.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_undriven(
output struct packed {logic [7:0] x; logic y; } O
);
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/complex_wire.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @complex_wire(%I0: i8, %I1: i1, %I2: !hw.array<4xi8>) -> (O0: i8, O1: i1, O2: !hw.array<4xi8>) {
%1 = sv.wire sym @complex_wire.tmp0 name "tmp0" : !hw.inout<i8>
sv.assign %1, %I0 : i8
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/complex_wire.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module complex_wire(
input [7:0] I0,
input I1,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/counter.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @counter(%CLK: i1) -> (y: i16) {
%0 = hw.constant 1 : i16
%2 = comb.add %1, %0 : i16
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/counter.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module counter(
input CLK,
output [15:0] y
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/feedthrough.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @feedthrough(%I: i1) -> (O: i1) {
hw.output %I : i1
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/feedthrough.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module feedthrough(
input I,
output O
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/multiport_memory.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @multiport_memory(%raddr_0: i2, %raddr_1: i2, %waddr_0: i2, %wdata_0: i5, %we_0: i1, %waddr_1: i2, %wdata_1: i5, %we_1: i1, %clk: i1) -> (rdata_0: i5, rdata_1: i5) {
%2 = sv.reg name "MultiportMemory_inst0" : !hw.inout<!hw.array<4xi5>>
%3 = sv.array_index_inout %2[%raddr_0] : !hw.inout<!hw.array<4xi5>>, i2
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/multiport_memory.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module multiport_memory(
input [1:0] raddr_0,
raddr_1,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @multiport_memory_re(%raddr_0: i2, %raddr_1: i2, %waddr_0: i2, %wdata_0: i5, %we_0: i1, %waddr_1: i2, %wdata_1: i5, %we_1: i1, %clk: i1, %re_0: i1, %re_1: i1) -> (rdata_0: i5, rdata_1: i5) {
%2 = sv.reg name "MultiportMemory_inst0" : !hw.inout<!hw.array<4xi5>>
%3 = sv.array_index_inout %2[%raddr_0] : !hw.inout<!hw.array<4xi5>>, i2
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/multiport_memory_re.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module multiport_memory_re(
input [1:0] raddr_0,
raddr_1,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend/test_mlir/golds/no_outputs.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @no_outputs(%I: i1) -> () {
%1 = hw.constant -1 : i1
%0 = comb.xor %1, %I : i1
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/no_outputs.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module no_outputs(
input I
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @non_power_of_two_mux_wrapper(%a: !hw.struct<x: i8, y: i1>, %s: i4) -> (y: !hw.struct<x: i8, y: i1>) {
%0 = hw.struct_extract %a["x"] : !hw.struct<x: i8, y: i1>
%2 = hw.constant -1 : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module non_power_of_two_mux_wrapper(
input struct packed {logic [7:0] x; logic y; } a,
input [3:0] s,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @non_power_of_two_mux_wrapper(%a: !hw.struct<x: i8, y: i1>, %s: i4) -> (y: !hw.struct<x: i8, y: i1>) {
%0 = hw.struct_extract %a["x"] : !hw.struct<x: i8, y: i1>
%2 = hw.constant -1 : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module non_power_of_two_mux_wrapper(
input struct packed {logic [7:0] x; logic y; } a,
input [3:0] s,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @non_power_of_two_mux_wrapper(%a_x: i8, %a_y: i1, %s: i4) -> (y_x: i8, y_y: i1) {
%1 = hw.constant -1 : i8
%0 = comb.xor %1, %a_x : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module non_power_of_two_mux_wrapper(
input [7:0] a_x,
input a_y,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @register_array_of_bit(%I: i4, %CLK: i1) -> (O: i4) {
%1 = sv.reg name "Register_inst0" : !hw.inout<i4>
sv.alwaysff(posedge %CLK) {
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend/test_mlir/golds/register_array_of_bit.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module register_array_of_bit(
input [3:0] I,
input CLK,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @simple_aggregates_anon_product(%a: !hw.struct<x: i8, y: i8>) -> (y: !hw.struct<x: i8, y: i8>) {
%0 = hw.struct_extract %a["x"] : !hw.struct<x: i8, y: i8>
%2 = hw.constant -1 : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module simple_aggregates_anon_product(
input struct packed {logic [7:0] x; logic [7:0] y; } a,
output struct packed {logic [7:0] x; logic [7:0] y; } y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @simple_aggregates_anon_product(%a_x: i8, %a_y: i8) -> (y_x: i8, y_y: i8) {
%1 = hw.constant -1 : i8
%0 = comb.xor %1, %a_x : i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module simple_aggregates_anon_product(
input [7:0] a_x,
a_y,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @simple_aggregates_array(%a: !hw.array<8xi16>) -> (y: !hw.array<8xi16>, z: !hw.array<4xi16>) {
%1 = hw.constant 4 : i3
%0 = hw.array_slice %a[%1] : (!hw.array<8xi16>) -> !hw.array<4xi16>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module simple_aggregates_array(
input [7:0][15:0] a,
output [7:0][15:0] y,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @simple_aggregates_bits(%a: i16) -> (y: i16, z: i8) {
%0 = comb.extract %a from 8 : (i16) -> i8
%1 = comb.extract %a from 0 : (i16) -> i8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module simple_aggregates_bits(
input [15:0] a,
output [15:0] y,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module attributes {circt.loweringOptions = "locationInfoStyle=none"} {
module attributes {circt.loweringOptions = "locationInfoStyle=none,omitVersionComment"} {
hw.module @simple_aggregates_nested_array(%a: !hw.array<8x!hw.array<4xi16>>) -> (y: !hw.array<8x!hw.array<4xi16>>) {
%1 = hw.constant 4 : i3
%0 = hw.array_slice %a[%1] : (!hw.array<8x!hw.array<4xi16>>) -> !hw.array<4x!hw.array<4xi16>>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Generated by CIRCT firtool-1.51.0-75-gbecb4c0ef
module simple_aggregates_nested_array(
input [7:0][3:0][15:0] a,
output [7:0][3:0][15:0] y
Expand Down
Loading

0 comments on commit 011ee97

Please sign in to comment.