Skip to content

Commit

Permalink
Simplify filenames in test bench and use MemPrintsCM.
Browse files Browse the repository at this point in the history
  • Loading branch information
aehart committed Dec 8, 2023
1 parent 59c780f commit 49485b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions TestBenches/InputRouter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ DtcMemWrd getNMemories( CablingMap pDtcMap
if( cBnWrd.range(cPhiBn,cPhiBn) == 1 ) cPhiBns.push_back(cPhiBn);
/*
// re-construct file name
std::string cFileName = "emData/MemPrints/InputStubs/";
std::string cFileName = "InputStubs/";
cFileName += getMemPrintName( cDtcName, pNonant, cLyr, (int)cPhiBn);
//std::cout << "\tLooking for memory print " << cFileName << "\n";
std::ifstream fin_mem_prints;
Expand Down Expand Up @@ -403,7 +403,7 @@ BnDscs getBns( CablingMap pDtcMap
for( size_t cPhiBn=0; cPhiBn<kMaxPhiBnsPrLyr; cPhiBn++)
{
// re-construct file name
std::string cFileName = "emData/MemPrints/InputStubs/";
std::string cFileName = "InputStubs/";
cFileName += getMemPrintName( cDtcName, pNonant, cLyr, (int)cPhiBn);
std::ifstream fin_mem_prints;
bool cPrintError=false;
Expand Down Expand Up @@ -510,7 +510,7 @@ void prepareInputStreams( ifstream * pInputStreams
{
if( cBnWrd.range(cPhiBn,cPhiBn) == 0 ) continue;

std::string cFileName = "emData/MemPrints/InputStubs/";
std::string cFileName = "InputStubs/";
std::string cMemPrint = getMemPrintName( cDtcName, pNonant, hLyrId + cLyrCorr, cPhiBn );
cFileName += cMemPrint;

Expand Down Expand Up @@ -582,7 +582,7 @@ int main(int argc, char * argv[])
std::cout << "Link#" << cLinkId << " fills " << +cTotalNmems << " output memories." << "\n";
// link name
std::string cLinkName = getLinkName( cMap, cLinkId , cNonant );
std::string cBaseName = "emData/MemPrints/InputStubs/";
std::string cBaseName = "InputStubs/";
std::string cInputFile_Link = cBaseName + cLinkName + ".dat";
std::cout << "Input file for Link# " << cLinkId << " is " << cInputFile_Link << std::endl;
// link word
Expand Down
2 changes: 1 addition & 1 deletion project/script_IR.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ add_files ../TopFunctions/CombinedConfig/InputRouterTop.cc -cflags "$CFLAGS"
add_files -tb ../TestBenches/InputRouter_test.cpp -cflags "$CFLAGS"

# data files
add_files -tb ../emData/
add_files -tb ../emData/MemPrintsCM/InputStubs/

set nProc [exec nproc]

Expand Down

0 comments on commit 49485b0

Please sign in to comment.