Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ MK_TEST_DIRS += tests/sim
MK_TEST_DIRS += tests/svtypes
MK_TEST_DIRS += tests/techmap
MK_TEST_DIRS += tests/various
MK_TEST_DIRS += tests/rtlil
ifeq ($(ENABLE_VERIFIC),1)
ifneq ($(YOSYS_NOVERIFIC),1)
MK_TEST_DIRS += tests/verific
Expand Down
8 changes: 4 additions & 4 deletions backends/aiger2/aiger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ struct XAigerWriter : AigerWriter {
for (auto [cursor, box, def] : opaque_boxes)
append_box_ports(box, cursor, false);

holes_module = design->addModule(NEW_ID);
holes_module = design->addModule(NEWER_ID);
std::vector<RTLIL::Wire *> holes_pis;
int boxes_ci_num = 0, boxes_co_num = 0;

Expand All @@ -1058,7 +1058,7 @@ struct XAigerWriter : AigerWriter {

for (auto [cursor, box, def] : nonopaque_boxes) {
// use `def->name` not `box->type` as we want the derived type
Cell *holes_wb = holes_module->addCell(NEW_ID, def->name);
Cell *holes_wb = holes_module->addCell(NEWER_ID, def->name);
int holes_pi_idx = 0;

if (map_file.is_open()) {
Expand Down Expand Up @@ -1097,7 +1097,7 @@ struct XAigerWriter : AigerWriter {
SigSpec in_conn;
for (int i = 0; i < port->width; i++) {
while (holes_pi_idx >= (int) holes_pis.size()) {
Wire *w = holes_module->addWire(NEW_ID, 1);
Wire *w = holes_module->addWire(NEWER_ID, 1);
w->port_input = true;
holes_module->ports.push_back(w->name);
holes_pis.push_back(w);
Expand Down Expand Up @@ -1126,7 +1126,7 @@ struct XAigerWriter : AigerWriter {
boxes_ci_num += port->width;

// holes
Wire *w = holes_module->addWire(NEW_ID, port->width);
Wire *w = holes_module->addWire(NEWER_ID, port->width);
w->port_output = true;
holes_module->ports.push_back(w->name);
holes_wb->setPort(port_id, w);
Expand Down
2 changes: 1 addition & 1 deletion backends/blif/blif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ struct BlifBackend : public Backend {

std::vector<RTLIL::Module*> mod_list;

design->sort();
// design->sort();
for (auto module : design->modules())
{
if (module->get_blackbox_attribute() && !config.blackbox_mode)
Expand Down
2 changes: 1 addition & 1 deletion backends/jny/jny.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct JnyWriter
{
log_assert(design != nullptr);

design->sort();
// design->sort();

f << "{\n";
f << " \"$schema\": \"https://raw.githubusercontent.com/YosysHQ/yosys/main/misc/jny.schema.json\",\n";
Expand Down
2 changes: 1 addition & 1 deletion backends/json/json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ struct JsonWriter
void write_design(Design *design_)
{
design = design_;
design->sort();
// design->sort();

f << stringf("{\n");
f << stringf(" \"creator\": %s,\n", get_string(yosys_maybe_version()));
Expand Down
Loading