summaryrefslogtreecommitdiffstats
path: root/fpga/hp_lcd_driver/ep4ce15f23c8.mk
diff options
context:
space:
mode:
Diffstat (limited to 'fpga/hp_lcd_driver/ep4ce15f23c8.mk')
-rw-r--r--fpga/hp_lcd_driver/ep4ce15f23c8.mk53
1 files changed, 11 insertions, 42 deletions
diff --git a/fpga/hp_lcd_driver/ep4ce15f23c8.mk b/fpga/hp_lcd_driver/ep4ce15f23c8.mk
index 713574d..390dc5b 100644
--- a/fpga/hp_lcd_driver/ep4ce15f23c8.mk
+++ b/fpga/hp_lcd_driver/ep4ce15f23c8.mk
@@ -1,15 +1,13 @@
FAMILY=Cyclone IV E
PART=EP4CE15F23C8
-CPART_1=CFI_64Mb
-CPART_2=QSPI_64Mb
-#EPCS16
+CPART=EPCS16
TOP=hp_lcd_driver
BUILD=build_${BOARD}
OF=output_files
PROJECT = hp_lcd_driver
VSRCS =delay.vhdl synchronizer.vhdl debounce.vhdl edge_det.vhdl input_formatter.vhdl input_stage.vhdl output_formatter.vhdl output_analog.vhdl tmds_encoder.vhdl tmds_encode.vhdl tmds_phy_cyclone4.vhdl tmds_output_cyclone4.vhdl output_stage.vhdl clkgen_cyclone4.vhdl vram_cyclone4.vhdl hp_lcd_driver.vhdl
-IPS= vram_cyclone4_impl.vhdl clkgen_cyclone4_a_impl.vhdl clkgen_cyclone4_b_impl.vhdl
+IPS= vram_cyclone4_impl.vhdl clkgen_cyclone4_a_impl.vhdl clkgen_cyclone4_b_impl.vhdl
DESIGN_NAME=${TOP}
@@ -31,8 +29,7 @@ ASM=${BUILD}/${OF}/$(PROJECT).asm.rpt
ASM=${BUILD}/${OF}/$(PROJECT).sta.rpt
SOF=${BUILD}/${OF}/${PROJECT}.sof
COF=${BUILD}/${OF}/${PROJECT}.cof
-POF=${BUILD}/${OF}/${PROJECT}.pof
-#JIC=${BUILD}/${OF}/${PROJECT}.jic
+JIC=${BUILD}/${OF}/${PROJECT}.jic
CDF=${BUILD}/${OF}/${PROJECT}.cdf
SVF=${BUILD}/${PROJECT}.svf
PSVF=${BUILD}/${PROJECT}-p.svf
@@ -87,47 +84,17 @@ ${STA}:${FIT}
svf:${SVF}
${SVF}:${SOF}
(cd ${BUILD} && run_quartus quartus_cpf ${CPF_ARGS} $(call relpath,$<,${BUILD}) $(call relpath,$@,${BUILD}) )
-#${JIC}:${SOF}
-# (cd ${BUILD} && run_quartus quartus_cpf -c -s ${PART} -d ${CPART} $(call relpath,$<,${BUILD}) $(call relpath,$@,${BUILD}) )
-#${SVFP}:${JIC}
-# (cd ${BUILD} && run_quartus quartus_cpf ${CPF_ARGS} $(call relpath,$<,${BUILD}) $(call relpath,$@,${BUILD}) )
-
-
-${COF}: ${SOF}
- echo '<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>' > $@
- echo '<cof>' >> $@
- echo ' <eprom_name>${CPART_1}</eprom_name>' >> $@
- echo ' <output_filename>$(call relpath,${POF},${BUILD})</output_filename>' >> $@
- echo ' <n_pages>1</n_pages>' >> $@
- echo ' <width>1</width>' >> $@
- echo ' <mode>0</mode>' >> $@
- echo ' <sof_data>' >> $@
- echo ' <user_name>Page_0</user_name>' >> $@
- echo ' <page_flags>1</page_flags>' >> $@
- echo ' <bit0>' >> $@
- echo ' <sof_filename>$(call relpath,${SOF},${BUILD})</sof_filename>' >> $@
- echo ' </bit0>' >> $@
- echo ' </sof_data>' >> $@
- echo ' <version>5</version>' >> $@
- echo ' <create_cvp_file>0</create_cvp_file>' >> $@
- echo ' <options>' >> $@
- echo ' <map_file>1</map_file>' >> $@
- echo ' <option_start_address>0</option_start_address>' >> $@
- echo ' <dynamic_compression>0</dynamic_compression>' >> $@
- echo ' </options>' >> $@
- echo '</cof>' >> $@
-
-${POF}:${COF}
- (cd ${BUILD} && run_quartus quartus_cpf -c $(call relpath,$<,${BUILD}))
-# (cd ${BUILD} && run_quartus quartus_cpf -c -d EPCQ64 $(call relpath,$<,${BUILD}) $(call relpath,$@,${BUILD}) )
-
-${CDF}:${POF}
+${JIC}:${SOF}
+ (cd ${BUILD} && run_quartus quartus_cpf -c -s ${PART} -d ${CPART} $(call relpath,$<,${BUILD}) $(call relpath,$@,${BUILD}) )
+
+
+${CDF}:${JIC}
echo 'JedecChain;' > $@
echo ' FileRevision(JESD32A);' >> $@
echo ' DefaultMfr(6E);' >> $@
echo '' >> $@
echo ' P ActionCode(Ign)' >> $@
- echo ' Device PartName(${CPART_2}) MfrSpec(OpMask(0) SEC_Device(${CPART_2}) Child_OpMask(3 0 0 0) FullPath("$(call relpath,${SOF},${BUILD})") PFLPath("$(call relpath,${POF},${BUILD})"));' >> $@
+ echo ' Device PartName(EP4CE15F23) Path("/root/projects/hp_instrument_lcds/fpga/hp_lcd_driver/fl2/output_files/") File("flash_loader.sof") MfrSpec(OpMask(1) SEC_Device(EPCS16) Child_OpMask(1 1) SFLPath("$(call abspath,${JIC})"));' >> $@
echo '' >> $@
echo 'ChainEnd;' >> $@
echo '' >> $@
@@ -182,3 +149,5 @@ clean:
#
#
+.PRECIOUS:
+