commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r5471 - in gnuradio/branches/developers/matt/u2f: . mo


From: matt
Subject: [Commit-gnuradio] r5471 - in gnuradio/branches/developers/matt/u2f: . models
Date: Mon, 14 May 2007 20:49:18 -0600 (MDT)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]