Skip to content

Commit 1bcc77e

Browse files
committed
pin_c: count I_DELAY as input in config.json
1 parent be22f6a commit 1bcc77e

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

pin_c/src/pin_loc/pin_placer.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ struct PinPlacer {
4444

4545
CStr cname() const noexcept { return name_.c_str(); }
4646

47-
bool isInput() const noexcept { return module_ == "I_BUF" or module_ == "CLK_BUF"; }
48-
bool isOutput() const noexcept { return module_ == "O_BUF"; }
47+
bool isInput() const noexcept {
48+
return module_ == "I_BUF" or module_ == "CLK_BUF" or module_ == "I_DELAY";
49+
}
50+
bool isOutput() const noexcept {
51+
return module_ == "O_BUF" or module_ == "O_DELAY";
52+
}
4953

5054
struct CmpOldPin {
5155
bool operator()(const EditItem* a, const EditItem* b) const noexcept {

stars/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
static const char* _pln_VERSION_STR = "pln0194";
1+
static const char* _pln_VERSION_STR = "pln0196";
22

33
#include "RS/rsEnv.h"
44
#include "util/pln_log.h"

stars/src/pin_loc/pin_placer.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ struct PinPlacer {
4444

4545
CStr cname() const noexcept { return name_.c_str(); }
4646

47-
bool isInput() const noexcept { return module_ == "I_BUF" or module_ == "CLK_BUF"; }
48-
bool isOutput() const noexcept { return module_ == "O_BUF"; }
47+
bool isInput() const noexcept {
48+
return module_ == "I_BUF" or module_ == "CLK_BUF" or module_ == "I_DELAY";
49+
}
50+
bool isOutput() const noexcept {
51+
return module_ == "O_BUF" or module_ == "O_DELAY";
52+
}
4953

5054
struct CmpOldPin {
5155
bool operator()(const EditItem* a, const EditItem* b) const noexcept {

0 commit comments

Comments
 (0)