From c6b02b435846939eb5954a7db39ac975ed63519d Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sun, 28 Nov 2021 10:00:21 +0100 Subject: [PATCH] spiOverJtag: add 5CEBA4F23C8, fix sdc file and compress rbf file --- spiOverJtag/Makefile | 8 +++++--- spiOverJtag/build.py | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/spiOverJtag/Makefile b/spiOverJtag/Makefile index ebc0544..05ccea8 100644 --- a/spiOverJtag/Makefile +++ b/spiOverJtag/Makefile @@ -4,8 +4,8 @@ XILINX_PARTS := xc6slx45csg324 xc6slx100fgg484 \ xc7s50csga324 XILINX_BIT_FILES := $(addsuffix .bit,$(addprefix spiOverJtag_, $(XILINX_PARTS))) -ALTERA_PARTS := 10cl025256 ep4ce2217 5ce223 -ALTERA_BIT_FILES := $(addsuffix .rbf, $(addprefix spiOverJtag_, $(ALTERA_PARTS))) +ALTERA_PARTS := 10cl025256 ep4ce2217 5ce223 5ce423 +ALTERA_BIT_FILES := $(addsuffix .rbf.gz, $(addprefix spiOverJtag_, $(ALTERA_PARTS))) BIT_FILES := $(ALTERA_BIT_FILES) $(XILINX_BIT_FILES) @@ -16,7 +16,9 @@ $(XILINX_BIT_FILES) : spiOverJtag_%.bit : tmp_%/spiOverJtag.bit tmp_%/spiOverJtag.bit : xilinx_spiOverJtag.v ./build.py $* -$(ALTERA_BIT_FILES): spiOverJtag_%.rbf: tmp_%/spiOverJtag.sof +$(ALTERA_BIT_FILES): spiOverJtag_%.rbf.gz: tmp_%/spiOverJtag.rbf + gzip -9 -c $< > $@ +tmp_%/spiOverJtag.rbf: tmp_%/spiOverJtag.sof quartus_cpf --option=bitstream_compression=off -c $< $@ tmp_%/spiOverJtag.sof: altera_spiOverJtag.v diff --git a/spiOverJtag/build.py b/spiOverJtag/build.py index 78855dc..76ef944 100755 --- a/spiOverJtag/build.py +++ b/spiOverJtag/build.py @@ -82,11 +82,12 @@ else: "10cl025256": "10CL025YU256C8G", "ep4ce2217" : "EP4CE22F17C6", "5ce223" : "5CEFA2F23I7", + "5ce423" : "5CEBA4F23C8", "5cse423" : "5CSEMA4U23C6", "5cse623" : "5CSEBA6U23I7"}[part] files.append({'name': currDir + 'altera_spiOverJtag.v', 'file_type': 'verilogSource'}) - files.append({'name': currDir + 'test_jtag.sdc', + files.append({'name': currDir + 'altera_spiOverJtag.sdc', 'file_type': 'SDC'}) tool_options = {'device': full_part, 'family':family}