Skip to content

Commit

Permalink
Merge pull request #270 from antmicro/read_systemverilog_alias
Browse files Browse the repository at this point in the history
Add 'read_systemverilog' command
  • Loading branch information
tgorochowik authored Mar 16, 2022
2 parents 5c7d58a + 3494b2b commit fb94f80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uhdm-plugin/uhdmsurelogastfrontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ std::vector<vpiHandle> executeCompilation(SURELOG::SymbolTable *symbolTable, SUR
}

struct UhdmSurelogAstFrontend : public UhdmCommonFrontend {
UhdmSurelogAstFrontend(std::string name, std::string short_help) : UhdmCommonFrontend(name, short_help) {}
UhdmSurelogAstFrontend() : UhdmCommonFrontend("verilog_with_uhdm", "generate/read UHDM file") {}
void print_read_options() override
{
Expand Down Expand Up @@ -129,4 +130,8 @@ struct UhdmSurelogAstFrontend : public UhdmCommonFrontend {
void call_log_header(RTLIL::Design *design) override { log_header(design, "Executing Verilog with UHDM frontend.\n"); }
} UhdmSurelogAstFrontend;

struct UhdmSystemVerilogFrontend : public UhdmSurelogAstFrontend {
UhdmSystemVerilogFrontend() : UhdmSurelogAstFrontend("systemverilog", "read SystemVerilog files") {}
} UhdmSystemVerilogFrontend;

YOSYS_NAMESPACE_END

0 comments on commit fb94f80

Please sign in to comment.