Skip to content

Commit

Permalink
Support OCLA
Browse files Browse the repository at this point in the history
  • Loading branch information
chungshien committed Aug 29, 2023
1 parent c6b101a commit be078e2
Show file tree
Hide file tree
Showing 10 changed files with 1,575 additions and 221 deletions.
10 changes: 10 additions & 0 deletions src/ConfigurationRS/BitAssembler/BitAssembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "BitAssembler_ddb.h"
#include "BitAssembler_mgr.h"
#include "BitAssembler_ocla.h"
#include "BitGenerator/BitGenerator.h"
#include "CFGCommonRS/CFGArgRS_auto.h"
#include "CFGObject/CFGObject_auto.h"
Expand Down Expand Up @@ -59,6 +60,15 @@ void BitAssembler_entry(const CFGCommon_ARG* cmdarg) {
mgr.get_ql_membank_fcb(&bitobj.ql_membank_fcb);
}

// OCLA
std::string yosysBin = CFG_print("%s/yosys", cmdarg->binPath.c_str());
std::string hierPath =
CFG_print("%s/hier_info.json", cmdarg->analyzePath.c_str());
std::string ysPath = CFG_print("%s/%s.ys", cmdarg->synthesisPath.c_str(),
cmdarg->projectName.c_str());
BitAssembler_OCLA::parse(bitobj, cmdarg->taskPath.c_str(), yosysBin,
hierPath, ysPath);

// Writing out
bitgen = bitobj.write(bitasm_file);
CFG_POST_MSG(" Status: %s", bitgen ? "success" : "fail");
Expand Down
1 change: 0 additions & 1 deletion src/ConfigurationRS/BitAssembler/BitAssembler_ddb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "BitAssembler_mgr.h"
#include "CFGCommonRS/CFGCommonRS.h"
#include "CFGObject/CFGObject_auto.h"
#include "nlohmann_json/json.hpp"

void CFG_ddb_search_device(const std::string& filepath,
const std::string& device_name,
Expand Down
Loading

0 comments on commit be078e2

Please sign in to comment.