Skip to content

Commit

Permalink
Specify Top Module for Pure VHDL Design Exclusively During Design Ela…
Browse files Browse the repository at this point in the history
…boration (#1672)

* revert PR 1670

* fix CI

* C++ code formating
  • Loading branch information
awaisabbas006 authored Aug 14, 2024
1 parent 12f14d8 commit bd02fde
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/Compiler/CompilerOpenFPGA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1461,12 +1461,21 @@ std::string CompilerOpenFPGA::GhdlDesignParsingCommmands() {
verilogcmd += "read_verilog " + includes + verilogFiles + "\n";
}
}
fileList =
"plugin -i ghdl\nghdl -frelaxed-rules --no-formal -fsynopsys -fexplicit "
"--PREFIX=" +
prefixPackagePath.string() + " " + searchPath + lang + " " + fileList +
" -e " + ProjManager()->DesignTopModule() + " " + designLibraries + "\n";
fileList += verilogcmd;
if (!verilogFiles.empty()) {
fileList =
"plugin -i ghdl\nghdl -frelaxed-rules --no-formal -fsynopsys "
"-fexplicit --PREFIX=" +
prefixPackagePath.string() + " " + searchPath + lang + " " + fileList +
" -e " + designLibraries + "\n";
fileList += verilogcmd;
} else {
fileList =
"plugin -i ghdl\nghdl -frelaxed-rules --no-formal -fsynopsys "
"-fexplicit --PREFIX=" +
prefixPackagePath.string() + " " + searchPath + lang + " " + fileList +
" -e " + ProjManager()->DesignTopModule() + " " + designLibraries +
"\n";
}

return fileList;
}
Expand Down

0 comments on commit bd02fde

Please sign in to comment.