Skip to content

Commit 071b36c

Browse files
Merge pull request #3093 from verilog-to-routing/yosys-upgrade
Upgrade to Yosys 0.53
2 parents 724ced2 + 03ef84b commit 071b36c

File tree

2,987 files changed

+1259111
-13553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,987 files changed

+1259111
-13553
lines changed

parmys/parmys-plugin/parmys.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,11 @@ struct ParMYSPass : public Pass {
10991099

11001100
log("Updating the Design\n");
11011101
Pass::call(design, "delete");
1102-
1102+
std::vector<RTLIL::Module*> modules_to_remove;
11031103
for (auto module : design->modules()) {
1104+
modules_to_remove.push_back(module);
1105+
}
1106+
for (auto module : modules_to_remove) {
11041107
design->remove(module);
11051108
}
11061109

parmys/parmys-plugin/parmys_update.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@ void define_logical_function_yosys(nnode_t *node, Module *module)
506506
lutptr = &cell->parameters.at(ID::LUT);
507507
for (int i = 0; i < (1 << node->num_input_pins); i++) {
508508
if (i == 3 || i == 5 || i == 6 || i == 7) //"011 1\n101 1\n110 1\n111 1\n"
509-
lutptr->bits.at(i) = RTLIL::State::S1;
509+
lutptr->bits().at(i) = RTLIL::State::S1;
510510
else
511-
lutptr->bits.at(i) = RTLIL::State::S0;
511+
lutptr->bits().at(i) = RTLIL::State::S0;
512512
}
513513
} else {
514514
cell->parameters[ID::A_WIDTH] = RTLIL::Const(int(node->num_input_pins));

parmys/regression_test/benchmark/task/freecores/synthesis_result.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -479,20 +479,20 @@
479479
"Multiplier": 1,
480480
"Memory": 8,
481481
"generic logic size": 4,
482-
"Longest Path": 274,
482+
"Longest Path": 275,
483483
"Average Path": 3,
484484
"Estimated LUTs": 4777,
485485
"Total Node": 1957,
486-
"Wires": 5591,
487-
"Wire Bits": 10025,
486+
"Wires": 5594,
487+
"Wire Bits": 10106,
488488
"Public Wires": 240,
489489
"Public Wire Bits": 240,
490-
"Total Cells": 8185,
490+
"Total Cells": 8190,
491491
"MUX": 2164,
492492
"XOR": 40,
493-
"OR": 2836,
494-
"AND": 1451,
495-
"NOT": 637,
493+
"OR": 2837,
494+
"AND": 1453,
495+
"NOT": 639,
496496
"DFFs": [
497497
"$_DFF_P_ 645"
498498
],
@@ -534,7 +534,7 @@
534534
"Estimated LUTs": 41888,
535535
"Total Node": 5344,
536536
"Wires": 9777,
537-
"Wire Bits": 102242,
537+
"Wire Bits": 102228,
538538
"Public Wires": 391,
539539
"Public Wire Bits": 391,
540540
"Total Cells": 31999,
@@ -585,8 +585,8 @@
585585
"Average Path": 3,
586586
"Estimated LUTs": 42386,
587587
"Total Node": 5593,
588-
"Wires": 10796,
589-
"Wire Bits": 103210,
588+
"Wires": 10808,
589+
"Wire Bits": 103300,
590590
"Public Wires": 648,
591591
"Public Wire Bits": 648,
592592
"Total Cells": 32995,
@@ -832,28 +832,28 @@
832832
"synthesis_time(ms)": 13,
833833
"Pi": 96,
834834
"Po": 115,
835-
"logic element": 2439,
836-
"Adder": 426,
835+
"logic element": 2425,
836+
"Adder": 412,
837837
"Memory": 96,
838838
"generic logic size": 4,
839-
"Longest Path": 473,
839+
"Longest Path": 476,
840840
"Average Path": 4,
841-
"Estimated LUTs": 4564,
842-
"Total Node": 2961,
843-
"Wires": 6934,
844-
"Wire Bits": 11506,
845-
"Public Wires": 501,
846-
"Public Wire Bits": 501,
841+
"Estimated LUTs": 4550,
842+
"Total Node": 2933,
843+
"Wires": 6977,
844+
"Wire Bits": 11482,
845+
"Public Wires": 487,
846+
"Public Wire Bits": 487,
847847
"Total Cells": 8955,
848-
"MUX": 2605,
849-
"XOR": 311,
850-
"OR": 1861,
851-
"AND": 1683,
852-
"NOT": 672,
848+
"MUX": 2601,
849+
"XOR": 295,
850+
"OR": 1926,
851+
"AND": 1684,
852+
"NOT": 678,
853853
"DFFs": [
854-
"$_DFF_P_ 1312"
854+
"$_DFF_P_ 1310"
855855
],
856-
"adder": 415,
856+
"adder": 365,
857857
"dual_port_ram": 64,
858858
"single_port_ram": 32
859859
},

parmys/regression_test/benchmark/task/keywords/and/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,21 @@
9595
"test_name": "and/replicate_and_int_wide/no_arch",
9696
"exit": 1,
9797
"errors": [
98-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
98+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
9999
]
100100
},
101101
"and/replicate_and_ultra_wide/no_arch": {
102102
"test_name": "and/replicate_and_ultra_wide/no_arch",
103103
"exit": 1,
104104
"errors": [
105-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
105+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
106106
]
107107
},
108108
"and/replicate_and_wide/no_arch": {
109109
"test_name": "and/replicate_and_wide/no_arch",
110110
"exit": 1,
111111
"errors": [
112-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
112+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
113113
]
114114
},
115115
"DEFAULT": {

parmys/regression_test/benchmark/task/keywords/else/synthesis_result.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
"Average Path": 4,
2020
"Estimated LUTs": 4,
2121
"Total Node": 4,
22-
"Wires": 9,
23-
"Wire Bits": 9,
22+
"Wires": 11,
23+
"Wire Bits": 11,
2424
"Public Wires": 4,
2525
"Public Wire Bits": 4,
26-
"Total Cells": 7,
26+
"Total Cells": 9,
2727
"MUX": 1,
2828
"XOR": 2,
29-
"OR": 1,
29+
"OR": 2,
3030
"AND": 1,
31-
"NOT": 2
31+
"NOT": 3
3232
},
3333
"else/if_else/no_arch": {
3434
"test_name": "else/if_else/no_arch",

parmys/regression_test/benchmark/task/keywords/nand/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@
9494
"test_name": "nand/replicate_nand_int_wide/no_arch",
9595
"exit": 1,
9696
"errors": [
97-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
97+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
9898
]
9999
},
100100
"nand/replicate_nand_ultra_wide/no_arch": {
101101
"test_name": "nand/replicate_nand_ultra_wide/no_arch",
102102
"exit": 1,
103103
"errors": [
104-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
104+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
105105
]
106106
},
107107
"nand/replicate_nand_wide/no_arch": {
108108
"test_name": "nand/replicate_nand_wide/no_arch",
109109
"exit": 1,
110110
"errors": [
111-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
111+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
112112
]
113113
},
114114
"DEFAULT": {

parmys/regression_test/benchmark/task/keywords/nor/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,21 @@
100100
"test_name": "nor/replicate_nor_int_wide/no_arch",
101101
"exit": 1,
102102
"errors": [
103-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
103+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
104104
]
105105
},
106106
"nor/replicate_nor_ultra_wide/no_arch": {
107107
"test_name": "nor/replicate_nor_ultra_wide/no_arch",
108108
"exit": 1,
109109
"errors": [
110-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
110+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
111111
]
112112
},
113113
"nor/replicate_nor_wide/no_arch": {
114114
"test_name": "nor/replicate_nor_wide/no_arch",
115115
"exit": 1,
116116
"errors": [
117-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
117+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
118118
]
119119
},
120120
"DEFAULT": {

parmys/regression_test/benchmark/task/keywords/or/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,21 @@
9595
"test_name": "or/replicate_or_int_wide/no_arch",
9696
"exit": 1,
9797
"errors": [
98-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
98+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
9999
]
100100
},
101101
"or/replicate_or_ultra_wide/no_arch": {
102102
"test_name": "or/replicate_or_ultra_wide/no_arch",
103103
"exit": 1,
104104
"errors": [
105-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
105+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
106106
]
107107
},
108108
"or/replicate_or_wide/no_arch": {
109109
"test_name": "or/replicate_or_wide/no_arch",
110110
"exit": 1,
111111
"errors": [
112-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
112+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
113113
]
114114
},
115115
"DEFAULT": {

parmys/regression_test/benchmark/task/keywords/xnor/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@
5454
"test_name": "xnor/replicate_xnor_int_wide/no_arch",
5555
"exit": 1,
5656
"errors": [
57-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
57+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
5858
]
5959
},
6060
"xnor/replicate_xnor_ultra_wide/no_arch": {
6161
"test_name": "xnor/replicate_xnor_ultra_wide/no_arch",
6262
"exit": 1,
6363
"errors": [
64-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
64+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
6565
]
6666
},
6767
"xnor/replicate_xnor_wide/no_arch": {
6868
"test_name": "xnor/replicate_xnor_wide/no_arch",
6969
"exit": 1,
7070
"errors": [
71-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
71+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
7272
]
7373
},
7474
"xnor/xnor_indexed_port/no_arch": {

parmys/regression_test/benchmark/task/keywords/xor/synthesis_result.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@
5151
"test_name": "xor/replicate_xor_int_wide/no_arch",
5252
"exit": 1,
5353
"errors": [
54-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
54+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
5555
]
5656
},
5757
"xor/replicate_xor_ultra_wide/no_arch": {
5858
"test_name": "xor/replicate_xor_ultra_wide/no_arch",
5959
"exit": 1,
6060
"errors": [
61-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
61+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
6262
]
6363
},
6464
"xor/replicate_xor_wide/no_arch": {
6565
"test_name": "xor/replicate_xor_wide/no_arch",
6666
"exit": 1,
6767
"errors": [
68-
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2686."
68+
"Assert `new_cell->children.at(0)->type == AST_CELLTYPE' failed in frontends/ast/simplify.cc:2754."
6969
]
7070
},
7171
"xor/xor_indexed_port/no_arch": {

0 commit comments

Comments
 (0)