From: Chris Lu Date: Thu, 25 Jun 2020 12:06:57 +0000 (-0500) Subject: add comment and sim build rule X-Git-Url: http://git.joshuawise.com/mandelfpga.git/commitdiff_plain/refs/heads/master add comment and sim build rule --- diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index cd766fa..b7b04ce --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ 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 \ diff --git a/mandelsim.c b/mandelsim.c index 16bdf46..2ce2feb 100644 --- a/mandelsim.c +++ b/mandelsim.c @@ -5,6 +5,9 @@ #define YRES 480 #define MAX_ITER 66 #define MAXNUM 0x8000 + +/* be sure to change the number of bits in the multiplier when doing this + * bits > 14 need extension of num_t to unsigned int */ #define BITS 14 #define BAIL (1 << (BITS + 1)) #define BAIL_A (1 << BITS)