[core] fixed bugs which cause ci failed
This commit is contained in:
parent
e11e4dc3f4
commit
18b078d1d5
|
@ -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()) {
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue