]> Joshua Wise's Git repositories - mandelfpga.git/commitdiff
Holy crap, dropped lut count to 7640, and slice count to 4253
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 28 Mar 2008 23:20:21 +0000 (19:20 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 28 Mar 2008 23:20:21 +0000 (19:20 -0400)
Main.v

diff --git a/Main.v b/Main.v
index 39f38ffdbb06bd96d499a0cad18e5d672018499b..0c1e6dce60bd1927c8620af7357ce7266818b0be 100644 (file)
--- a/Main.v
+++ b/Main.v
@@ -69,19 +69,19 @@ module NaiveMultiplier(
        always @(posedge clk)
        begin
                {ovf,out} <=
-                       (((y[12] ? (x     ) : 0)   +
-                         (y[11] ? (x >> 1) : 0)   +
-                         (y[10] ? (x >> 2) : 0))  +
-                       (((y[9]  ? (x >> 3) : 0)   +
-                         (y[8]  ? (x >> 4) : 0))  +
-                        ((y[7]  ? (x >> 5) : 0)   +
-                         (y[6]  ? (x >> 6) : 0))))+
-                       (((y[5]  ? (x >> 7) : 0)   +
-                         (y[4]  ? (x >> 8) : 0)   +
-                         (y[3]  ? (x >> 9) : 0))  +
-                        ((y[2]  ? (x >> 10): 0)   +
-                         (y[1]  ? (x >> 11): 0)   +
-                         (y[0]  ? (x >> 12): 0)));
+                       (((y[12] ? (x       ) : 0)   +
+                         (y[11] ? (x[12:1]) : 0)   +
+                         (y[10] ? (x[12:2]) : 0))  +
+                       (((y[9]  ? (x[12:3]) : 0)   +
+                         (y[8]  ? (x[12:4]) : 0))  +
+                        ((y[7]  ? (x[12:5]) : 0)   +
+                         (y[6]  ? (x[12:6]) : 0))))+
+                       (((y[5]  ? (x[12:7]) : 0)   +
+                         (y[4]  ? (x[12:8]) : 0)   +
+                         (y[3]  ? (x[12:9]) : 0))  +
+                        ((y[2]  ? (x[12:10]): 0)   +
+                         (y[1]  ? (x[12:11]): 0)   +
+                         (y[0]  ? (x[12]): 0)));
                sign <= xsign ^ ysign;
        end
 
This page took 0.026887 seconds and 4 git commands to generate.