Skip to content

Commit

Permalink
verific: remove mkconst_str
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer authored and povik committed Sep 2, 2024
1 parent 856f7b7 commit d4a6563
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions frontends/verific/verific.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,6 @@ RTLIL::IdString VerificImporter::new_verific_id(Verific::DesignObj *obj)
return s;
}

RTLIL::Const mkconst_str(const std::string &str)
{
return RTLIL::Const(str);
}

static const RTLIL::Const extract_vhdl_boolean(std::string &val)
{
if (val == "false")
Expand Down Expand Up @@ -283,7 +278,7 @@ static const RTLIL::Const extract_vhdl_char(std::string &val)

static const RTLIL::Const extract_real_value(std::string &val)
{
RTLIL::Const c = mkconst_str(val);
RTLIL::Const c(val);
c.flags |= RTLIL::CONST_FLAG_REAL;
return c;
}
Expand Down Expand Up @@ -321,7 +316,7 @@ static const RTLIL::Const extract_vhdl_const(const char *value, bool output_sig
} else if (val == "true") {
c = RTLIL::Const::from_string("1");
} else {
c = mkconst_str(val);
c = RTLIL::Const(val);
log_warning("encoding value '%s' as string.\n", value);
}
if (is_signed)
Expand Down Expand Up @@ -352,7 +347,7 @@ static const RTLIL::Const extract_verilog_const(const char *value, bool allow_s
} else if (allow_string) {
c = RTLIL::Const(val);
} else {
c = mkconst_str(val);
c = RTLIL::Const(val);
log_warning("encoding value '%s' as string.\n", value);
}
if (is_signed)
Expand Down

0 comments on commit d4a6563

Please sign in to comment.