X-Git-Url: http://git.joshuawise.com/mandelfpga.git/blobdiff_plain/13350ed5ba81f086691c27cb42d816a063707a13..58414f713ffeb89684711ea376636674b0f691f4:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 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