From 3494b2b1ba02a319dd74aee87998bc3e0d328819 Mon Sep 17 00:00:00 2001 From: Tomasz Gorochowik Date: Wed, 16 Mar 2022 11:14:24 +0100 Subject: [PATCH] Add 'read_systemverilog' command This works as an alias to 'read_verilog_with_uhdm' Signed-off-by: Tomasz Gorochowik --- uhdm-plugin/uhdmsurelogastfrontend.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uhdm-plugin/uhdmsurelogastfrontend.cc b/uhdm-plugin/uhdmsurelogastfrontend.cc index ce7977249..9a00ba694 100644 --- a/uhdm-plugin/uhdmsurelogastfrontend.cc +++ b/uhdm-plugin/uhdmsurelogastfrontend.cc @@ -78,6 +78,7 @@ std::vector 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 { @@ -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