Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom edif backend #2030

Merged
merged 5 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontends/systemverilog/uhdm_common_frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include "uhdm_common_frontend.h"
#include "edif.h"

namespace systemverilog_plugin
{
Expand All @@ -30,6 +31,8 @@ static void set_line_num(int) {}
/* Stub for AST::process */
static int get_line_num(void) { return 1; }

UhdmCommonFrontend::UhdmCommonFrontend(std::string name, std::string short_help) : Frontend(name, short_help) { register_synlig_edif_backend(); }

void UhdmCommonFrontend::print_read_options()
{
log(" -noassert\n");
Expand Down
2 changes: 1 addition & 1 deletion frontends/systemverilog/uhdm_common_frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static inline ObjT *make_new_object_with_optional_extra_true_arg(ArgN &&...arg_n
struct UhdmCommonFrontend : public ::Yosys::Frontend {
UhdmAstShared shared;
std::vector<std::string> args;
UhdmCommonFrontend(std::string name, std::string short_help) : Frontend(name, short_help) {}
UhdmCommonFrontend(std::string name, std::string short_help);
virtual void print_read_options();
virtual void help() = 0;
virtual ::Yosys::AST::AstNode *parse(std::string filename) = 0;
Expand Down
Loading
Loading