3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-05 10:50:25 +00:00

tracy: init, zones per pass execute method, pointer-colored

This commit is contained in:
Emil J. Tywoniak 2024-05-28 23:51:17 +02:00
parent 5579685673
commit 0fb3f3a78e
180 changed files with 567 additions and 4 deletions

View file

@ -201,6 +201,9 @@ struct AssertpmuxPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
bool flag_noinit = false;
bool flag_always = false;

View file

@ -47,6 +47,9 @@ struct Async2syncPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
bool flag_nolower = false;
log_header(design, "Executing ASYNC2SYNC pass.\n");

View file

@ -120,6 +120,9 @@ struct Clk2fflogicPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
bool flag_nolower = false;
log_header(design, "Executing CLK2FFLOGIC pass (convert clocked FFs to generic $ff cells).\n");

View file

@ -40,6 +40,9 @@ struct CutpointPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
bool flag_undef = false;
log_header(design, "Executing CUTPOINT pass.\n");

View file

@ -384,6 +384,9 @@ struct EvalPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
std::vector<std::pair<std::string, std::string>> sets;
std::vector<std::string> shows, tables;
bool set_undef = false;

View file

@ -256,6 +256,9 @@ struct ExposePass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
bool flag_shared = false;
bool flag_evert = false;
bool flag_dff = false;

View file

@ -276,6 +276,9 @@ struct FmcombinePass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
opts_t opts;
Module *module = nullptr;
Cell *gold_cell = nullptr;

View file

@ -49,6 +49,9 @@ struct FminitPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
vector<pair<string, vector<string>>> initdata;
vector<pair<string, string>> setdata;
string clocksignal;

View file

@ -542,6 +542,9 @@ struct FormalFfPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
bool flag_clk2ff = false;
bool flag_ff2anyinit = false;
bool flag_anyinit2ff = false;

View file

@ -794,6 +794,9 @@ struct FreducePass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
reduce_counter = 0;
reduce_stop_at = 0;
verbose_level = 0;

View file

@ -450,6 +450,9 @@ struct MiterPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
if (args.size() > 1 && args[1] == "-equiv") {
create_miter_equiv(this, args, design);
return;

View file

@ -794,6 +794,9 @@ struct MutatePass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
mutate_opts_t opts;
string filename;
string srcsfile;

View file

@ -584,6 +584,9 @@ struct QbfSatPass : public Pass {
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
log_header(design, "Executing QBFSAT pass (solving QBF-SAT problems in the circuit).\n");
QbfSolveOptions opt = parse_args(args);
extra_args(args, opt.argidx, design);

View file

@ -698,6 +698,9 @@ struct RecoverNamesPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
log_header(design, "Executing RECOVER_NAMES pass (run mapping and recover original names).\n");
string command;

View file

@ -1074,6 +1074,9 @@ struct SatPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
std::vector<std::pair<std::string, std::string>> sets, sets_init, prove, prove_x;
std::map<int, std::vector<std::pair<std::string, std::string>>> sets_at;
std::map<int, std::vector<std::string>> unsets_at, sets_def_at, sets_any_undef_at, sets_all_undef_at;

View file

@ -2688,6 +2688,9 @@ struct SimPass : public Pass {
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
SimWorker worker;
int numcycles = 20;
int append = 0;
@ -2932,6 +2935,9 @@ struct Fst2TbPass : public Pass {
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
SimWorker worker;
int numcycles = 20;
bool stop_set = false;

View file

@ -37,6 +37,9 @@ struct SupercoverPass : public Pass {
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
// bool flag_noinit = false;
log_header(design, "Executing SUPERCOVER pass.\n");

View file

@ -220,6 +220,9 @@ struct SyntProperties : public Pass {
virtual void execute(std::vector<std::string> args, RTLIL::Design* design)
{
ZoneScoped;
ZoneText(pass_name.c_str(), pass_name.length());
ZoneColor((uint32_t)(size_t)pass_name.c_str());
log_header(design, "Executing SYNTHPROP pass.\n");
SynthPropWorker worker(design);
size_t argidx;