Skip to content

Commit

Permalink
[core] fixed bugs which cause ci failed
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxifan committed Apr 24, 2023
1 parent e11e4dc commit 18b078d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions libs/libarchopenfpga/src/config_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ void ConfigProtocol::set_wl_num_banks(const size_t& num_banks) {
***********************************************************************/
int ConfigProtocol::validate_ccff_prog_clocks() const {
int num_err = 0;
if (prog_clock_pins().empty()) {
return num_err;
}
/* Initialize scoreboard */
std::vector<int> ccff_head_scoreboard(num_regions(), 0);
for (openfpga::BasicPort port : prog_clock_pins()) {
Expand Down
2 changes: 1 addition & 1 deletion openfpga/src/utils/check_config_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static int check_config_protocol_programming_clock(
const ConfigProtocol& config_protocol, const CircuitLibrary& circuit_lib) {
int num_err = 0;
/* Programming clock is only available for CCFF */
if (config_protocol.type() == CONFIG_MEM_SCAN_CHAIN) {
if (config_protocol.type() != CONFIG_MEM_SCAN_CHAIN) {
return num_err;
}
/* Must find a CCFF model */
Expand Down

0 comments on commit 18b078d

Please sign in to comment.