-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CoreIR] Make coreir an optional dependency (#1312)
* Remove setup.py dependency * Remove register dependency * Update compile.py * Update util.py * Update test_csr.py * Update test_define.py * Add ignore collect hook * WIP Update tests * Update tests * Fix collection issue * WIP update tests * Fix rebase artifact * Revert test changes * Just remove imports for now * update bind tests * Fix circt version * Fix version numbers * Add optional dependency test * update golds * Remove version comment * Skip coreir in tests * Fix skip syntax * Update bind unit test * Update compile guard tests * Skip more tests * Update workflow * Update more tests * Update tests * Fix test spec * Update comments * Update fault logic * Remove skip logic * Remove skip * Add bind test * Update line numbers * Remove deprecated test * Remove deploy change
- Loading branch information
Showing
22 changed files
with
189 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module TopBasicAsserts_mlirverilog( | ||
input I, | ||
O, | ||
other | ||
); | ||
|
||
endmodule | ||
|
||
|
||
bind Top TopBasicAsserts_mlirverilog TopBasicAsserts_mlirverilog_inst ( | ||
.I(I), | ||
.O(O), | ||
.other(_magma_bind_wire_0) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module TopXMRAsserts_mlirverilog( | ||
input I, | ||
O, | ||
other | ||
); | ||
|
||
endmodule | ||
|
||
|
||
bind Top TopXMRAsserts_mlirverilog TopXMRAsserts_mlirverilog_inst ( | ||
.I(I), | ||
.O(O), | ||
.other(middle._magma_bind_wire_0) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Top( | ||
input I, | ||
output O | ||
); | ||
|
||
wire _magma_bind_wire_0 = I; | ||
assign O = I; | ||
endmodule | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module Bottom( | ||
input I, | ||
output O | ||
); | ||
|
||
assign O = I; | ||
endmodule | ||
|
||
module Middle( | ||
input I, | ||
output O | ||
); | ||
|
||
wire _magma_bind_wire_0 = I; | ||
Bottom bottom ( | ||
.I (I), | ||
.O (O) | ||
); | ||
endmodule | ||
|
||
module Top( | ||
input I, | ||
output O | ||
); | ||
|
||
Middle middle ( | ||
.I (I), | ||
.O (O) | ||
); | ||
endmodule | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
// Defined at tests/test_circuit/test_define.py:56 | ||
// Defined at tests/test_circuit/test_define.py:55 | ||
module main (input [1:0] I, output O); | ||
wire and2_0_O; | ||
wire and2_1_O; | ||
wire and2_2_O; | ||
wire and2_3_O; | ||
// Instanced at tests/test_circuit/test_define.py:61 | ||
// Argument I0(I[0]) wired at tests/test_circuit/test_define.py:63 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:64 | ||
// Argument O(and2_0_O) wired at tests/test_circuit/test_define.py:66 | ||
// Instanced at tests/test_circuit/test_define.py:60 | ||
// Argument I0(I[0]) wired at tests/test_circuit/test_define.py:62 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:63 | ||
// Argument O(and2_0_O) wired at tests/test_circuit/test_define.py:65 | ||
And2 and2_0 (.I0(I[0]), .I1(I[1]), .O(and2_0_O)); | ||
// Instanced at tests/test_circuit/test_define.py:61 | ||
// Argument I0(and2_0_O) wired at tests/test_circuit/test_define.py:66 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:67 | ||
// Argument O(and2_1_O) wired at tests/test_circuit/test_define.py:66 | ||
// Instanced at tests/test_circuit/test_define.py:60 | ||
// Argument I0(and2_0_O) wired at tests/test_circuit/test_define.py:65 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:66 | ||
// Argument O(and2_1_O) wired at tests/test_circuit/test_define.py:65 | ||
And2 and2_1 (.I0(and2_0_O), .I1(I[1]), .O(and2_1_O)); | ||
// Instanced at tests/test_circuit/test_define.py:61 | ||
// Argument I0(and2_1_O) wired at tests/test_circuit/test_define.py:66 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:67 | ||
// Argument O(and2_2_O) wired at tests/test_circuit/test_define.py:66 | ||
// Instanced at tests/test_circuit/test_define.py:60 | ||
// Argument I0(and2_1_O) wired at tests/test_circuit/test_define.py:65 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:66 | ||
// Argument O(and2_2_O) wired at tests/test_circuit/test_define.py:65 | ||
And2 and2_2 (.I0(and2_1_O), .I1(I[1]), .O(and2_2_O)); | ||
// Instanced at tests/test_circuit/test_define.py:61 | ||
// Argument I0(and2_2_O) wired at tests/test_circuit/test_define.py:66 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:67 | ||
// Argument O(and2_3_O) wired at tests/test_circuit/test_define.py:70 | ||
// Instanced at tests/test_circuit/test_define.py:60 | ||
// Argument I0(and2_2_O) wired at tests/test_circuit/test_define.py:65 | ||
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:66 | ||
// Argument O(and2_3_O) wired at tests/test_circuit/test_define.py:69 | ||
And2 and2_3 (.I0(and2_2_O), .I1(I[1]), .O(and2_3_O)); | ||
// Wired at tests/test_circuit/test_define.py:70 | ||
// Wired at tests/test_circuit/test_define.py:69 | ||
assign O = and2_3_O; | ||
endmodule | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.