Skip to content

Commit 0610d6c

Browse files
committed
Smallfix to get GHDL working
1 parent bb2cdd6 commit 0610d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontends/verific/verific.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3769,7 +3769,7 @@ struct VerificPass : public Pass {
37693769

37703770
// Run command to convert VHDL to Verilog
37713771
std::string basename = FileSystem::Basename(filename);
3772-
std::string top = filename_str.substr(basename.find_last_of("/")+1, basename.find_last_of(".")-basename.find_last_of("/")-1);
3772+
std::string top = basename.substr(0, basename.find_last_of("."));
37733773
std::string outfile = "preqorsor/data/" + top + ".v";
37743774
std::string ghdl_cmd = ghdl_path + " --synth --no-formal -fsynopsys --out=verilog " + filename_str + " -e " + top + " > " + outfile;
37753775
log("Running command: %s\n", ghdl_cmd.c_str());

0 commit comments

Comments
 (0)