From 05e95408cbc6173d10972de5679c5bc65ca97416 Mon Sep 17 00:00:00 2001 From: Nikolay Puzanov Date: Wed, 3 Mar 2021 13:35:38 +0300 Subject: [PATCH] Move clock constraint from Makefile to PCF --- Makefile | 2 +- icesugar.pcf | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c5c5150..4161620 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ $(TOP_BIN): $(TOP_ASC) # Place and rouite $(TOP_ASC): $(TOP_JSON) $(PCF) nextpnr-ice40 -q -l $(BUILD_DIR)/nextpnr.log --$(FAMILY) --package $(PACKAGE) \ - --freq $(FREQ) --top $(TOP) --pcf $(PCF) --asc $(TOP_ASC) --json $(TOP_JSON) \ + --top $(TOP) --pcf $(PCF) --asc $(TOP_ASC) --json $(TOP_JSON) \ $(DOSVG) # Synthesys diff --git a/icesugar.pcf b/icesugar.pcf index e7e8ac7..f39ea59 100644 --- a/icesugar.pcf +++ b/icesugar.pcf @@ -54,8 +54,11 @@ set_io -nowarn P4_2 20 set_io -nowarn P4_3 19 set_io -nowarn P4_4 18 -#spi +# spi set_io -nowarn SPI_SS 16 set_io -nowarn SPI_SCK 15 set_io -nowarn SPI_MOSI 17 set_io -nowarn SPI_MISO 14 + +# Clock constraint +set_frequency clock 30