Author: matt
Date: 2007-05-14 20:49:17 -0600 (Mon, 14 May 2007)
New Revision: 5471
Added:
gnuradio/branches/developers/matt/u2f/models/
gnuradio/branches/developers/matt/u2f/models/MULT18X18S.v
Log:
model of the Xilinx mult primitive
Added: gnuradio/branches/developers/matt/u2f/models/MULT18X18S.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/models/MULT18X18S.v
(rev 0)
+++ gnuradio/branches/developers/matt/u2f/models/MULT18X18S.v 2007-05-15
02:49:17 UTC (rev 5471)
@@ -0,0 +1,20 @@
+
+// Model of the Xilinx mult18x18s for signed 18x18 bit multiplies,
+// As in the Spartan 3 series
+
+module MULT18X18S
+ (output signed [35:0] P,
+ input signed [17:0] A,
+ input signed [17:0] B,
+ input C, // Clock
+ input CE, // Clock Enable
+ input R // Synchronous Reset
+ );
+
+ always @(posedge C)
+ if(R)
+ P <= 36'sd0;
+ else if(CE)
+ P <= A * B;
+
+endmodule // MULT18X18S
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio