[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r7239 - usrp2/trunk/fpga/timing
From: |
matt |
Subject: |
[Commit-gnuradio] r7239 - usrp2/trunk/fpga/timing |
Date: |
Sat, 22 Dec 2007 15:15:15 -0700 (MST) |
Author: matt
Date: 2007-12-22 15:15:15 -0700 (Sat, 22 Dec 2007)
New Revision: 7239
Added:
usrp2/trunk/fpga/timing/pps.v
Log:
placeholder for now, will eventually handle all timing sync
Added: usrp2/trunk/fpga/timing/pps.v
===================================================================
--- usrp2/trunk/fpga/timing/pps.v (rev 0)
+++ usrp2/trunk/fpga/timing/pps.v 2007-12-22 22:15:15 UTC (rev 7239)
@@ -0,0 +1,26 @@
+
+
+module pps
+ (input clk, input rst,
+ input pps_in,
+ input exp_pps_in,
+ output exp_pps_out,
+ input [31:0] master_time
+ );
+
+ localparam MAX = 14;
+
+ reg [7:0] counter;
+ always @(posedge clk)
+ if(rst)
+ counter <= 0;
+ else if(counter == MAX)
+ counter <= 0;
+ else
+ counter <= counter + 1;
+
+ assign exp_pps_out = counter[0];
+
+endmodule // pps
+
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r7239 - usrp2/trunk/fpga/timing,
matt <=