Skip to content

Commit

Permalink
Add 'read_systemverilog' command
Browse files Browse the repository at this point in the history
This works as an alias to 'read_verilog_with_uhdm'

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
  • Loading branch information
tgorochowik committed Mar 16, 2022
1 parent af72a89 commit 3494b2b
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 3494b2b

Please sign in to comment.