Skip to content

Commit

Permalink
remove remaining copy yosys files API
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbreeze413 committed Nov 8, 2024
1 parent 2045a69 commit 4dbfab5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
20 changes: 0 additions & 20 deletions src/Compiler/CompilerOpenFPGA_ql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2216,26 +2216,6 @@ bool CompilerOpenFPGA_ql::Synthesize() {
return false;
}

// if user has explicitly asked us *not* to copy the yosys files
// as per the device target, then skip the copy section below.
// we assume, that the user know that the share/yosys/ dir contents
// are already setup correctly for the device target being used
// a quick way to do this from the user side would be to just run
// a project/example without the --noyosyscopy file once, and then
// use multiple projects (in parallel) with the --noyosyscopy flag passed in
// subsequently.
if(GetSession()->CmdLine()->NoYosysCopy()) {
// skip the section copying yosys share files required
// for the device target
}
else {
// copy the yosys shared files (device models) to the yosys and tabbycad
// dirs in the install.
bool yosysSetupStatus = QLDeviceManager::getInstance()->deviceSetupYosysModels();
if(yosysSetupStatus == false) {
return false;
}
}

// init synthesis script from the right location according to the selected device.
std::string yosysScript = InitSynthesisScript();
Expand Down
3 changes: 0 additions & 3 deletions src/Main/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ void CommandLine::processArgs() {
m_version = true;
} else if (token == "--mute") {
m_mute = true;
} else if (token == "--noyosyscopy") {
m_noyosyscopy = true;
} else {
std::cout << "ERROR Unknown command line option: " << m_argv[i]
<< std::endl;
Expand All @@ -118,5 +116,4 @@ void CommandLine::Clear()
m_version = false;
m_useVerific = false;
m_mute = false;
m_noyosyscopy = false;
}
2 changes: 0 additions & 2 deletions src/Main/CommandLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class CommandLine {
void ErrorAndExit(const std::string& message);
bool FileExists(const std::filesystem::path& name);
bool Mute() const { return m_mute; }
bool NoYosysCopy() const { return m_noyosyscopy; }

void Clear();

Expand All @@ -86,7 +85,6 @@ class CommandLine {
bool m_version = false;
bool m_useVerific = false;
bool m_mute = false;
bool m_noyosyscopy = false;
};

} // namespace FOEDAG
Expand Down

0 comments on commit 4dbfab5

Please sign in to comment.