Skip to content

Commit

Permalink
flat_routing option in OpenFPGA script EDA-3138
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rs committed Aug 29, 2024
1 parent 430c1d9 commit e667c82
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Compiler/CompilerOpenFPGA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,7 @@ std::string CompilerOpenFPGA::BaseVprCommand(BaseVprDefaults defaults) {
netlistFileName = netlistFileName.filename();
auto name = netlistFileName.stem().string();
if (m_flatRouting) {
command += " --flat_routing true";
command += " --flat_routing on";
}
if (!m_routingGraphFile.empty()) {
command += " --read_rr_graph " + m_routingGraphFile.string();
Expand Down Expand Up @@ -3428,8 +3428,12 @@ std::string CompilerOpenFPGA::FinishOpenFPGAScript(const std::string& script) {
} else {
result = ReplaceAll(result, "${OPENFPGA_VPR_DEVICE_LAYOUT}", "");
}
std::string chan_width_and_flat_routing = std::to_string(m_channel_width);
if (m_flatRouting) {
chan_width_and_flat_routing += " --flat_routing on";
}
result = ReplaceAll(result, "${OPENFPGA_VPR_ROUTE_CHAN_WIDTH}",
std::to_string(m_channel_width));
chan_width_and_flat_routing);
result = ReplaceAll(result, "${OPENFPGA_ARCH_FILE}",
m_OpenFpgaArchitectureFile.string());

Expand Down

0 comments on commit e667c82

Please sign in to comment.