mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
Added "yosys -D" feature
This commit is contained in:
parent
1565d1af69
commit
0bc95f1e04
113 changed files with 172 additions and 145 deletions
|
@ -53,7 +53,7 @@ struct MemoryPass : public Pass {
|
|||
bool flag_nordff = false;
|
||||
string memory_bram_opts;
|
||||
|
||||
log_header("Executing MEMORY pass.\n");
|
||||
log_header(design, "Executing MEMORY pass.\n");
|
||||
log_push();
|
||||
|
||||
size_t argidx;
|
||||
|
|
|
@ -1211,7 +1211,7 @@ struct MemoryBramPass : public Pass {
|
|||
{
|
||||
rules_t rules;
|
||||
|
||||
log_header("Executing MEMORY_BRAM pass (mapping $mem cells to block memories).\n");
|
||||
log_header(design, "Executing MEMORY_BRAM pass (mapping $mem cells to block memories).\n");
|
||||
|
||||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
|
|
|
@ -247,7 +247,7 @@ struct MemoryCollectPass : public Pass {
|
|||
log("\n");
|
||||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) {
|
||||
log_header("Executing MEMORY_COLLECT pass (generating $mem cells).\n");
|
||||
log_header(design, "Executing MEMORY_COLLECT pass (generating $mem cells).\n");
|
||||
extra_args(args, 1, design);
|
||||
for (auto &mod_it : design->modules_)
|
||||
if (design->selected(mod_it.second))
|
||||
|
|
|
@ -283,7 +283,7 @@ struct MemoryDffPass : public Pass {
|
|||
{
|
||||
bool flag_wr_only = false;
|
||||
|
||||
log_header("Executing MEMORY_DFF pass (merging $dff cells to $memrd and $memwr).\n");
|
||||
log_header(design, "Executing MEMORY_DFF pass (merging $dff cells to $memrd and $memwr).\n");
|
||||
|
||||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
|
|
|
@ -363,7 +363,7 @@ struct MemoryMapPass : public Pass {
|
|||
log("\n");
|
||||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) {
|
||||
log_header("Executing MEMORY_MAP pass (converting $mem cells to logic and flip-flops).\n");
|
||||
log_header(design, "Executing MEMORY_MAP pass (converting $mem cells to logic and flip-flops).\n");
|
||||
extra_args(args, 1, design);
|
||||
for (auto mod : design->selected_modules())
|
||||
MemoryMapWorker(design, mod);
|
||||
|
|
|
@ -747,7 +747,7 @@ struct MemorySharePass : public Pass {
|
|||
log("\n");
|
||||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) {
|
||||
log_header("Executing MEMORY_SHARE pass (consolidating $memrc/$memwr cells).\n");
|
||||
log_header(design, "Executing MEMORY_SHARE pass (consolidating $memrc/$memwr cells).\n");
|
||||
extra_args(args, 1, design);
|
||||
for (auto module : design->selected_modules())
|
||||
MemoryShareWorker(design, module);
|
||||
|
|
|
@ -138,7 +138,7 @@ struct MemoryUnpackPass : public Pass {
|
|||
log("\n");
|
||||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) {
|
||||
log_header("Executing MEMORY_UNPACK pass (generating $memrd/$memwr cells form $mem cells).\n");
|
||||
log_header(design, "Executing MEMORY_UNPACK pass (generating $memrd/$memwr cells form $mem cells).\n");
|
||||
extra_args(args, 1, design);
|
||||
for (auto &mod_it : design->modules_)
|
||||
if (design->selected(mod_it.second))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue