Skip to content

Commit bb2cdd6

Browse files
committed
Fix GHDL and bump yosys-slang
1 parent 5a27db1 commit bb2cdd6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frontends/verific/verific.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3768,7 +3768,8 @@ struct VerificPass : public Pass {
37683768
if (!FileSystem::PathExists(ghdl_path.c_str())) ghdl_path = "ghdl";
37693769

37703770
// Run command to convert VHDL to Verilog
3771-
std::string top = filename_str.substr(0, std::string(FileSystem::Basename(filename)).find_last_of("."));
3771+
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);
37723773
std::string outfile = "preqorsor/data/" + top + ".v";
37733774
std::string ghdl_cmd = ghdl_path + " --synth --no-formal -fsynopsys --out=verilog " + filename_str + " -e " + top + " > " + outfile;
37743775
log("Running command: %s\n", ghdl_cmd.c_str());

yosys-slang

0 commit comments

Comments
 (0)