aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2019-02-20 22:17:33 +0000
committerGitHub <noreply@github.com>2019-02-20 22:17:33 +0000
commite8d3aaaf34895a073e4023192d97fc936d090990 (patch)
treec781698d5b3015be00f4bb1d17fc82be970404ff /ice40
parent4c7306185e68824cd24e666946ca7b277169c16b (diff)
parenta7ea3f58e32a910f02d8dd7923a44d75a2b06e57 (diff)
downloadnextpnr-e8d3aaaf34895a073e4023192d97fc936d090990.tar.gz
nextpnr-e8d3aaaf34895a073e4023192d97fc936d090990.tar.bz2
nextpnr-e8d3aaaf34895a073e4023192d97fc936d090990.zip
Merge pull request #238 from YosysHQ/padin_gb_tmgfix
ice40: Fix timing class of 'padin' GB outputs
Diffstat (limited to 'ice40')
-rw-r--r--ice40/arch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 23a2130c..4370b581 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -1021,7 +1021,7 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, in
return TMG_IGNORE;
} else if (cell->type == id_SB_GB) {
if (port == id_GLOBAL_BUFFER_OUTPUT)
- return TMG_COMB_OUTPUT;
+ return cell->gbInfo.forPadIn ? TMG_GEN_CLOCK : TMG_COMB_OUTPUT;
return TMG_COMB_INPUT;
} else if (cell->type == id_SB_WARMBOOT) {
return TMG_ENDPOINT;