diff --git a/libs/libarchopenfpga/src/config_protocol.cpp b/libs/libarchopenfpga/src/config_protocol.cpp index fc3a43d95..848bc9011 100644 --- a/libs/libarchopenfpga/src/config_protocol.cpp +++ b/libs/libarchopenfpga/src/config_protocol.cpp @@ -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 ccff_head_scoreboard(num_regions(), 0); for (openfpga::BasicPort port : prog_clock_pins()) { diff --git a/openfpga/src/utils/check_config_protocol.cpp b/openfpga/src/utils/check_config_protocol.cpp index aba9a58d5..ebeec23bd 100644 --- a/openfpga/src/utils/check_config_protocol.cpp +++ b/openfpga/src/utils/check_config_protocol.cpp @@ -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 */