mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +00:00
Use C++11 final/override keywords.
This commit is contained in:
parent
dfde1cf1c5
commit
7191dd16f9
220 changed files with 540 additions and 548 deletions
|
@ -1276,7 +1276,7 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin
|
|||
|
||||
struct AbcPass : public Pass {
|
||||
AbcPass() : Pass("abc", "use ABC for technology mapping") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -1460,7 +1460,7 @@ struct AbcPass : public Pass {
|
|||
log("[1] http://www.eecs.berkeley.edu/~alanmi/abc/\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing ABC pass (technology mapping using ABC).\n");
|
||||
log_push();
|
||||
|
|
|
@ -36,7 +36,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
struct Abc9Pass : public ScriptPass
|
||||
{
|
||||
Abc9Pass() : ScriptPass("abc9", "use ABC9 for technology mapping") { }
|
||||
void on_register() YS_OVERRIDE
|
||||
void on_register() override
|
||||
{
|
||||
RTLIL::constpad["abc9.script.default"] = "+&scorr; &sweep; &dc2; &dch -f; &ps; &if {C} {W} {D} {R} -v; &mfs";
|
||||
RTLIL::constpad["abc9.script.default.area"] = "+&scorr; &sweep; &dc2; &dch -f; &ps; &if {C} {W} {D} {R} -a -v; &mfs";
|
||||
|
@ -81,7 +81,7 @@ struct Abc9Pass : public ScriptPass
|
|||
"&st; &if {C} -g -K 6; &synch2; &if {C} {W} {D} {R} -v; &save; &load;"\
|
||||
"&mfs";
|
||||
}
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -184,7 +184,7 @@ struct Abc9Pass : public ScriptPass
|
|||
int maxlut;
|
||||
std::string box_file;
|
||||
|
||||
void clear_flags() YS_OVERRIDE
|
||||
void clear_flags() override
|
||||
{
|
||||
exe_cmd.str("");
|
||||
exe_cmd << "abc9_exe";
|
||||
|
@ -195,7 +195,7 @@ struct Abc9Pass : public ScriptPass
|
|||
box_file = "";
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
std::string run_from, run_to;
|
||||
clear_flags();
|
||||
|
@ -272,7 +272,7 @@ struct Abc9Pass : public ScriptPass
|
|||
log_pop();
|
||||
}
|
||||
|
||||
void script() YS_OVERRIDE
|
||||
void script() override
|
||||
{
|
||||
if (check_label("check")) {
|
||||
if (help_mode)
|
||||
|
|
|
@ -293,7 +293,7 @@ void abc9_module(RTLIL::Design *design, std::string script_file, std::string exe
|
|||
|
||||
struct Abc9ExePass : public Pass {
|
||||
Abc9ExePass() : Pass("abc9_exe", "use ABC9 for technology mapping") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -375,7 +375,7 @@ struct Abc9ExePass : public Pass {
|
|||
log("[1] http://www.eecs.berkeley.edu/~alanmi/abc/\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing ABC9_EXE pass (technology mapping using ABC9).\n");
|
||||
|
||||
|
|
|
@ -1530,7 +1530,7 @@ clone_lut:
|
|||
|
||||
struct Abc9OpsPass : public Pass {
|
||||
Abc9OpsPass() : Pass("abc9_ops", "helper functions for ABC9") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -1614,7 +1614,7 @@ struct Abc9OpsPass : public Pass {
|
|||
log(" inputs and outputs.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing ABC9_OPS pass (helper functions for ABC9).\n");
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct AigmapPass : public Pass {
|
||||
AigmapPass() : Pass("aigmap", "map logic to and-inverter-graph circuit") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -43,7 +43,7 @@ struct AigmapPass : public Pass {
|
|||
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
bool nand_mode = false, select_mode = false;
|
||||
|
||||
|
|
|
@ -550,7 +550,7 @@ struct AlumaccWorker
|
|||
|
||||
struct AlumaccPass : public Pass {
|
||||
AlumaccPass() : Pass("alumacc", "extract ALU and MACC cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -560,7 +560,7 @@ struct AlumaccPass : public Pass {
|
|||
log("and $macc cells.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing ALUMACC pass (create $alu and $macc cells).\n");
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ struct AttrmapAction {
|
|||
|
||||
struct AttrmapTocase : AttrmapAction {
|
||||
string name;
|
||||
bool apply(IdString &id, Const&) YS_OVERRIDE {
|
||||
bool apply(IdString &id, Const&) override {
|
||||
if (match_name(name, id, true))
|
||||
id = RTLIL::escape_id(name);
|
||||
return true;
|
||||
|
@ -90,7 +90,7 @@ struct AttrmapTocase : AttrmapAction {
|
|||
|
||||
struct AttrmapRename : AttrmapAction {
|
||||
string old_name, new_name;
|
||||
bool apply(IdString &id, Const&) YS_OVERRIDE {
|
||||
bool apply(IdString &id, Const&) override {
|
||||
if (match_name(old_name, id))
|
||||
id = RTLIL::escape_id(new_name);
|
||||
return true;
|
||||
|
@ -101,7 +101,7 @@ struct AttrmapMap : AttrmapAction {
|
|||
bool imap;
|
||||
string old_name, new_name;
|
||||
string old_value, new_value;
|
||||
bool apply(IdString &id, Const &val) YS_OVERRIDE {
|
||||
bool apply(IdString &id, Const &val) override {
|
||||
if (match_name(old_name, id) && match_value(old_value, val, true)) {
|
||||
id = RTLIL::escape_id(new_name);
|
||||
val = make_value(new_value);
|
||||
|
@ -113,7 +113,7 @@ struct AttrmapMap : AttrmapAction {
|
|||
struct AttrmapRemove : AttrmapAction {
|
||||
bool has_value;
|
||||
string name, value;
|
||||
bool apply(IdString &id, Const &val) YS_OVERRIDE {
|
||||
bool apply(IdString &id, Const &val) override {
|
||||
return !(match_name(name, id) && (!has_value || match_value(value, val)));
|
||||
}
|
||||
};
|
||||
|
@ -221,7 +221,7 @@ bool parse_attrmap_paramap_options(size_t &argidx, std::vector<std::string> &arg
|
|||
|
||||
struct AttrmapPass : public Pass {
|
||||
AttrmapPass() : Pass("attrmap", "renaming attributes") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -241,7 +241,7 @@ struct AttrmapPass : public Pass {
|
|||
log(" -imap keep=\"false\" keep=0 -remove keep=0\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing ATTRMAP pass (move or copy attributes).\n");
|
||||
|
||||
|
@ -301,7 +301,7 @@ struct AttrmapPass : public Pass {
|
|||
|
||||
struct ParamapPass : public Pass {
|
||||
ParamapPass() : Pass("paramap", "renaming cell parameters") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -317,7 +317,7 @@ struct ParamapPass : public Pass {
|
|||
log(" paramap -tocase INIT t:LUT4\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing PARAMAP pass (move or copy cell parameters).\n");
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct AttrmvcpPass : public Pass {
|
||||
AttrmvcpPass() : Pass("attrmvcp", "move or copy attributes from wires to driving cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
log("\n");
|
||||
log(" attrmvcp [options] [selection]\n");
|
||||
|
@ -53,7 +53,7 @@ struct AttrmvcpPass : public Pass {
|
|||
log(" multiple times.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing ATTRMVCP pass (move or copy attributes).\n");
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ void split_portname_pair(std::string &port1, std::string &port2)
|
|||
|
||||
struct ClkbufmapPass : public Pass {
|
||||
ClkbufmapPass() : Pass("clkbufmap", "insert global buffers on clock networks") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -76,7 +76,7 @@ struct ClkbufmapPass : public Pass {
|
|||
modules_processed.insert(module);
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing CLKBUFMAP pass (inserting global clock buffers).\n");
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct DeminoutPass : public Pass {
|
||||
DeminoutPass() : Pass("deminout", "demote inout ports to input or output") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
log("\n");
|
||||
log(" deminout [options] [selection]\n");
|
||||
|
@ -33,7 +33,7 @@ struct DeminoutPass : public Pass {
|
|||
log("\"Demote\" inout ports to input or output ports, if possible.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing DEMINOUT pass (demote inout ports to input or output).\n");
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ struct Dff2dffeWorker
|
|||
|
||||
struct Dff2dffePass : public Pass {
|
||||
Dff2dffePass() : Pass("dff2dffe", "transform $dff cells to $dffe cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -288,7 +288,7 @@ struct Dff2dffePass : public Pass {
|
|||
log(" $_DFFE_[NP]_.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing DFF2DFFE pass (transform $dff to $dffe where applicable).\n");
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct Dff2dffsPass : public Pass {
|
||||
Dff2dffsPass() : Pass("dff2dffs", "process sync set/reset with SR over CE priority") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
log("\n");
|
||||
log(" dff2dffs [options] [selection]\n");
|
||||
|
@ -39,7 +39,7 @@ struct Dff2dffsPass : public Pass {
|
|||
log(" output wire's init attribute (if any).\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing dff2dffs pass (merge synchronous set/reset into FF cells).\n");
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct DffinitPass : public Pass {
|
||||
DffinitPass() : Pass("dffinit", "set INIT param on FF cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -54,7 +54,7 @@ struct DffinitPass : public Pass {
|
|||
log(" the already defined initial value.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing DFFINIT pass (set INIT param on FF cells).\n");
|
||||
|
||||
|
|
|
@ -549,7 +549,7 @@ static void dfflibmap(RTLIL::Design *design, RTLIL::Module *module, bool prepare
|
|||
|
||||
struct DfflibmapPass : public Pass {
|
||||
DfflibmapPass() : Pass("dfflibmap", "technology mapping of flip-flops") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
log("\n");
|
||||
log(" dfflibmap [-prepare] -liberty <file> [selection]\n");
|
||||
|
@ -565,7 +565,7 @@ struct DfflibmapPass : public Pass {
|
|||
log("liberty file.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing DFFLIBMAP pass (mapping DFF cells to sequential cells from liberty file).\n");
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ bool compareSortNeedleList(RTLIL::Module *left, RTLIL::Module *right)
|
|||
|
||||
struct ExtractPass : public Pass {
|
||||
ExtractPass() : Pass("extract", "find subcircuits and replace them with cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -433,7 +433,7 @@ struct ExtractPass : public Pass {
|
|||
log("See 'help techmap' for a pass that does the opposite thing.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing EXTRACT pass (map subcircuits to cells).\n");
|
||||
log_push();
|
||||
|
|
|
@ -760,7 +760,7 @@ void counter_worker(
|
|||
|
||||
struct ExtractCounterPass : public Pass {
|
||||
ExtractCounterPass() : Pass("extract_counter", "Extract GreenPak4 counter cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -788,7 +788,7 @@ struct ExtractCounterPass : public Pass {
|
|||
log("\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing EXTRACT_COUNTER pass (find counters in netlist).\n");
|
||||
|
||||
|
|
|
@ -539,7 +539,7 @@ struct ExtractFaWorker
|
|||
|
||||
struct ExtractFaPass : public Pass {
|
||||
ExtractFaPass() : Pass("extract_fa", "find and extract full/half adders") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -561,7 +561,7 @@ struct ExtractFaPass : public Pass {
|
|||
log(" Verbose output\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
ExtractFaConfig config;
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ struct ExtractReducePass : public Pass
|
|||
|
||||
ExtractReducePass() : Pass("extract_reduce", "converts gate chains into $reduce_* cells") { }
|
||||
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -63,7 +63,7 @@ struct ExtractReducePass : public Pass
|
|||
(cell->type == ID($_XOR_) && gt == GateType::Xor);
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing EXTRACT_REDUCE pass.\n");
|
||||
log_push();
|
||||
|
|
|
@ -35,7 +35,7 @@ void split_portname_pair(std::string &port1, std::string &port2)
|
|||
|
||||
struct ExtractinvPass : public Pass {
|
||||
ExtractinvPass() : Pass("extractinv", "extract explicit inverter cells for invertible cell pins") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -57,7 +57,7 @@ struct ExtractinvPass : public Pass {
|
|||
log("\n");
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing EXTRACTINV pass (extracting pin inverters).\n");
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ struct FlattenWorker
|
|||
|
||||
struct FlattenPass : public Pass {
|
||||
FlattenPass() : Pass("flatten", "flatten design") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -270,7 +270,7 @@ struct FlattenPass : public Pass {
|
|||
log(" Ignore the 'whitebox' attribute on cell implementations.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing FLATTEN pass (flatten design).\n");
|
||||
log_push();
|
||||
|
|
|
@ -1470,7 +1470,7 @@ static void split(std::vector<std::string> &tokens, const std::string &text, cha
|
|||
|
||||
struct FlowmapPass : public Pass {
|
||||
FlowmapPass() : Pass("flowmap", "pack LUTs with FlowMap") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -1511,7 +1511,7 @@ struct FlowmapPass : public Pass {
|
|||
log(" explain decisions performed during depth relaxation.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
int order = 3;
|
||||
int minlut = 1;
|
||||
|
|
|
@ -55,7 +55,7 @@ void hilomap_worker(RTLIL::SigSpec &sig)
|
|||
|
||||
struct HilomapPass : public Pass {
|
||||
HilomapPass() : Pass("hilomap", "technology mapping of constant hi- and/or lo-drivers") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
log("\n");
|
||||
log(" hilomap [options] [selection]\n");
|
||||
|
@ -74,7 +74,7 @@ struct HilomapPass : public Pass {
|
|||
log(" each constant bit.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing HILOMAP pass (mapping to constant drivers).\n");
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct InsbufPass : public Pass {
|
||||
InsbufPass() : Pass("insbuf", "insert buffer cells for connected wires") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
log("\n");
|
||||
log(" insbuf [options] [selection]\n");
|
||||
|
@ -37,7 +37,7 @@ struct InsbufPass : public Pass {
|
|||
log(" call to \"clean\" will remove all $_BUF_ in the design.)\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing INSBUF pass (insert buffer cells for connected wires).\n");
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ void split_portname_pair(std::string &port1, std::string &port2)
|
|||
|
||||
struct IopadmapPass : public Pass {
|
||||
IopadmapPass() : Pass("iopadmap", "technology mapping of i/o pads (or buffers)") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
log("\n");
|
||||
log(" iopadmap [options] [selection]\n");
|
||||
|
@ -97,7 +97,7 @@ struct IopadmapPass : public Pass {
|
|||
modules_processed.insert(module);
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing IOPADMAP pass (mapping inputs/outputs to IO-PAD cells).\n");
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ int lut2mux(Cell *cell)
|
|||
|
||||
struct Lut2muxPass : public Pass {
|
||||
Lut2muxPass() : Pass("lut2mux", "convert $lut to $_MUX_") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -65,7 +65,7 @@ struct Lut2muxPass : public Pass {
|
|||
log("This pass converts $lut cells to $_MUX_ gates.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing LUT2MUX pass (convert $lut to $_MUX_).\n");
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct MaccmapPass : public Pass {
|
||||
MaccmapPass() : Pass("maccmap", "mapping macc cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -375,7 +375,7 @@ struct MaccmapPass : public Pass {
|
|||
log("is used then the $macc cell is mapped to $add, $sub, etc. cells instead.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
bool unmap_mode = false;
|
||||
|
||||
|
|
|
@ -623,7 +623,7 @@ struct MuxcoverWorker
|
|||
|
||||
struct MuxcoverPass : public Pass {
|
||||
MuxcoverPass() : Pass("muxcover", "cover trees of MUX cells with wider MUXes") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -656,7 +656,7 @@ struct MuxcoverPass : public Pass {
|
|||
log(" than <N> different signals.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing MUXCOVER pass (mapping to wider MUXes).\n");
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ struct NlutmapWorker
|
|||
|
||||
struct NlutmapPass : public Pass {
|
||||
NlutmapPass() : Pass("nlutmap", "map to LUTs of different sizes") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -149,7 +149,7 @@ struct NlutmapPass : public Pass {
|
|||
log("to generic logic gates ($_AND_, etc.).\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
NlutmapConfig config;
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ static SigSpec recursive_mux_generator(Module *module, const SigSpec &sig_data,
|
|||
|
||||
struct PmuxtreePass : public Pass {
|
||||
PmuxtreePass() : Pass("pmuxtree", "transform $pmux cells to trees of $mux cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -76,7 +76,7 @@ struct PmuxtreePass : public Pass {
|
|||
log("This pass transforms $pmux cells to trees of $mux cells.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing PMUXTREE pass.\n");
|
||||
|
||||
|
|
|
@ -403,7 +403,7 @@ struct ShregmapWorker
|
|||
|
||||
struct ShregmapPass : public Pass {
|
||||
ShregmapPass() : Pass("shregmap", "map shift registers") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -461,7 +461,7 @@ struct ShregmapPass : public Pass {
|
|||
log(" map to greenpak4 shift registers.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
ShregmapOptions opts;
|
||||
string clkpol, enpol;
|
||||
|
|
|
@ -575,7 +575,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct SimplemapPass : public Pass {
|
||||
SimplemapPass() : Pass("simplemap", "mapping simple coarse-grain cells") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -590,7 +590,7 @@ struct SimplemapPass : public Pass {
|
|||
log(" $sr, $ff, $dff, $dffsr, $adff, $dlatch\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing SIMPLEMAP pass (map simple cells to gate primitives).\n");
|
||||
extra_args(args, 1, design);
|
||||
|
|
|
@ -991,7 +991,7 @@ struct TechmapWorker
|
|||
|
||||
struct TechmapPass : public Pass {
|
||||
TechmapPass() : Pass("techmap", "generic technology mapper") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -1151,7 +1151,7 @@ struct TechmapPass : public Pass {
|
|||
log("essentially techmap but using the design itself as map library).\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing TECHMAP pass (map to technology primitives).\n");
|
||||
log_push();
|
||||
|
|
|
@ -143,7 +143,7 @@ struct TribufWorker {
|
|||
|
||||
struct TribufPass : public Pass {
|
||||
TribufPass() : Pass("tribuf", "infer tri-state buffers") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -160,7 +160,7 @@ struct TribufPass : public Pass {
|
|||
log(" to non-tristate logic. this option implies -merge.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
TribufConfig config;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct ZinitPass : public Pass {
|
||||
ZinitPass() : Pass("zinit", "add inverters so all FF are zero-initialized") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -37,7 +37,7 @@ struct ZinitPass : public Pass {
|
|||
log(" also add zero initialization to uninitialized FFs\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
bool all_mode = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue