Move clock constraint from Makefile to PCF

This commit is contained in:
Nikolay Puzanov 2021-03-03 13:35:38 +03:00
parent 51267b1682
commit 05e95408cb
2 changed files with 5 additions and 2 deletions

View File

@ -24,7 +24,7 @@ $(TOP_BIN): $(TOP_ASC)
# Place and rouite # Place and rouite
$(TOP_ASC): $(TOP_JSON) $(PCF) $(TOP_ASC): $(TOP_JSON) $(PCF)
nextpnr-ice40 -q -l $(BUILD_DIR)/nextpnr.log --$(FAMILY) --package $(PACKAGE) \ 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) $(DOSVG)
# Synthesys # Synthesys

View File

@ -54,8 +54,11 @@ set_io -nowarn P4_2 20
set_io -nowarn P4_3 19 set_io -nowarn P4_3 19
set_io -nowarn P4_4 18 set_io -nowarn P4_4 18
#spi # spi
set_io -nowarn SPI_SS 16 set_io -nowarn SPI_SS 16
set_io -nowarn SPI_SCK 15 set_io -nowarn SPI_SCK 15
set_io -nowarn SPI_MOSI 17 set_io -nowarn SPI_MOSI 17
set_io -nowarn SPI_MISO 14 set_io -nowarn SPI_MISO 14
# Clock constraint
set_frequency clock 30