]> Joshua Wise's Git repositories - mandelfpga.git/blobdiff - Makefile
add comment and sim build rule
[mandelfpga.git] / Makefile
old mode 100644 (file)
new mode 100755 (executable)
index 1d7fb91..b7b04ce
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
 TARGET = MandelTop
 VLOGS = pixDCM.v mandelDCM.v Main.v
 VLOGS_ALL = $(VLOGS)
+PART = xc3s1200e-fg320-5
 
 all: fpga_target
 
+sim: mandelsim.c
+       gcc -O3 -lSDL -o mandelsim mandelsim.c -march=pentium3
+
 BITGEN_OPTS = \
        -w \
        -g DebugBitstream:No \
@@ -38,10 +42,10 @@ $(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 xc3s500e-fg320-5 "$(TARGET).ngc" $(TARGET).ngd
+       ngdbuild -dd _ngo -uc $(TARGET).ucf -nt timestamp -p $(PART) "$(TARGET).ngc" $(TARGET).ngd
 
 $(TARGET)_map.ncd: $(TARGET).ngd
-       map -p xc3s500e-fg320-5 -cm area -pr off -k 4 -c 100 -o $(TARGET)_map.ncd $(TARGET).ngd $(TARGET).pcf
+       map -p $(PART) -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.023312 seconds and 4 git commands to generate.