From: Joshua Wise Date: Wed, 9 Jul 2008 04:13:40 +0000 (-0400) Subject: Add another bit. X-Git-Url: http://git.joshuawise.com/mandelfpga.git/commitdiff_plain/08b195f395e9ed559004efdc953c3afaf8ba0444 Add another bit. --- diff --git a/Main.v b/Main.v index 6f8c938..aa3d861 100644 --- a/Main.v +++ b/Main.v @@ -12,7 +12,7 @@ `define YRES 480 `define WHIRRRRR 47 -`define TOPBIT 12 +`define TOPBIT 13 module SyncGen( input pixclk, @@ -73,19 +73,22 @@ module NaiveMultiplier( always @(posedge clk) begin {ovf,out} <= - (((y[12] ? (x ) : 0) + - (y[11] ? (x[`TOPBIT:1]) : 0) + - (y[10] ? (x[`TOPBIT:2]) : 0)) + - (((y[9] ? (x[`TOPBIT:3]) : 0) + - (y[8] ? (x[`TOPBIT:4]) : 0)) + - ((y[7] ? (x[`TOPBIT:5]) : 0) + - (y[6] ? (x[`TOPBIT:6]) : 0))))+ - (((y[5] ? (x[`TOPBIT:7]) : 0) + - (y[4] ? (x[`TOPBIT:8]) : 0) + - (y[3] ? (x[`TOPBIT:9]) : 0)) + - ((y[2] ? (x[`TOPBIT:10]): 0) + - (y[1] ? (x[`TOPBIT:11]): 0) + - (y[0] ? (x[`TOPBIT]): 0))); + ((((0) + // 15 + (0)) + // 14 + ((y[13] ? (x ) : 0) + + (y[12] ? (x[`TOPBIT:1]) : 0))) + + (((y[11] ? (x[`TOPBIT:2]) : 0) + + (y[10] ? (x[`TOPBIT:3]) : 0)) + + ((y[9] ? (x[`TOPBIT:4]) : 0) + + (y[8] ? (x[`TOPBIT:5]) : 0))))+ + ((((y[7] ? (x[`TOPBIT:6]) : 0) + + (y[6] ? (x[`TOPBIT:7]) : 0)) + + ((y[5] ? (x[`TOPBIT:8]) : 0) + + (y[4] ? (x[`TOPBIT:9]) : 0))) + + (((y[3] ? (x[`TOPBIT:10]): 0) + + (y[2] ? (x[`TOPBIT:11]): 0)) + + ((y[1] ? (x[`TOPBIT:12]): 0) + + (y[0] ? (x[`TOPBIT]) : 0)))); sign <= xsign ^ ysign; end