Skip to content

Commit

Permalink
Merge pull request #861 from os-fpga/checker_skip_unused_RAM_bits
Browse files Browse the repository at this point in the history
checker: skip unused RAM output bits
  • Loading branch information
serge-dsa authored Sep 23, 2024
2 parents bdc6e98 + ea2c16a commit 3d0357a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion planning/src/file_io/pln_blif_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1571,10 +1571,17 @@ bool BLIF_file::linkNodes() noexcept {
for (BNode* fab_nd : fabricNodes_) {
BNode& nd = *fab_nd;
assert(!nd.out_.empty());
if (nd.parent_) continue;
if (nd.parent_)
continue;
int pinIndex = -1;
BNode* par = findFabricParent(nd.id_, nd.out_, pinIndex);
if (!par) {
if (nd.is_RAM()) {
// RAM output bits may be unused
if (trace_ >= 6)
lprintf("skipping dangling cell output issue for RAM");
continue;
}
err_msg_ = "dangling cell output: ";
err_msg_ += nd.out_;
if (trace_ >= 2) {
Expand Down
3 changes: 3 additions & 0 deletions planning/src/file_io/pln_blif_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ struct BLIF_file : public fio::MMapReader
bool is_FF() const noexcept {
return prim::pr_is_DFF(ptype_);
}
bool is_RAM() const noexcept {
return prim::pr_is_RAM(ptype_);
}

bool canDriveClockNode() const noexcept {
return isTopInput() or is_CLK_BUF() or ptype_ == prim::I_SERDES;
Expand Down
2 changes: 1 addition & 1 deletion planning/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
static const char* _pln_VERSION_STR = "pln0340";
static const char* _pln_VERSION_STR = "pln0341";

#include "RS/rsEnv.h"
#include "util/pln_log.h"
Expand Down

0 comments on commit 3d0357a

Please sign in to comment.