]> Joshua Wise's Git repositories - poslink.git/blobdiff - Makefile
whoops.
[poslink.git] / Makefile
index 84031f7030cd4c695494ddc38a6b75059d21454f..f6ef7b25e5219cf7b31137f1e8e36382f54f581f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,10 @@
 TARGET = POSLink
 VLOGS = POSLink.v
 VLOGS_ALL = $(VLOGS)
+CHIP = xc9572xl-7-vq44
 
 all: fpga_target
 
-scancodes.unshifted.hex: scancodes.txt
-       cut -f3 -d, scancodes.txt > scancodes.unshifted.hex
-
-scancodes.shifted.hex: scancodes.txt
-       cut -f4 -d, scancodes.txt > scancodes.shifted.hex
-
 BITGEN_OPTS = \
        -w \
        -g DebugBitstream:No \
@@ -34,7 +29,7 @@ BITGEN_OPTS = \
        -g DonePipe:No \
        -g DriveDone:No
 
-fpga_target: $(TARGET).svf
+fpga_target: $(TARGET).jed
 
 $(TARGET).ngc: $(TARGET).xst $(VLOGS_ALL)
        @mkdir -p xst/projnav.tmp
@@ -44,10 +39,16 @@ $(TARGET).ngc: $(TARGET).xst $(VLOGS_ALL)
        xst -ifn $(TARGET).xst -ofn $(TARGET).syr
 
 $(TARGET).ngd: $(TARGET).ngc $(TARGET).ucf
-       ngdbuild -dd _ngo -uc $(TARGET).ucf -nt timestamp -p xc3s1200e-fg320-5 "$(TARGET).ngc" $(TARGET).ngd
+       ngdbuild -dd _ngo -uc $(TARGET).ucf -nt timestamp -p $(CHIP) "$(TARGET).ngc" $(TARGET).ngd
+
+$(TARGET).vm6: $(TARGET).ngd
+       cpldfit -p $(CHIP) -power std $(TARGET).ngd -inputs 12 -pterms 10 
+
+$(TARGET).jed: $(TARGET).vm6
+       hprep6 -i $(TARGET).vm6
 
 $(TARGET)_map.ncd: $(TARGET).ngd
-       map -p xc3s1200e-fg320-5 -cm area -pr off -k 4 -c 100 -o $(TARGET)_map.ncd $(TARGET).ngd $(TARGET).pcf
+       map -p $(CHIP) -cm area -pr off -k 4 -c 100 -o $(TARGET)_map.ncd $(TARGET).ngd $(TARGET).pcf
 
 $(TARGET).ncd: $(TARGET)_map.ncd
        par -w -ol std -t 1 $(TARGET)_map.ncd $(TARGET).ncd $(TARGET).pcf
This page took 0.023158 seconds and 4 git commands to generate.