summaryrefslogtreecommitdiffstats
path: root/usrp2
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2011-07-28 09:57:59 -0700
committerJosh Blum <josh@joshknows.com>2011-07-28 10:02:47 -0700
commitb23ac38dabe54145b385c50a1f4afa16c0dc3b15 (patch)
tree771e10705d6f95f26a33dcd4511de236b9df70ed /usrp2
parentb57d39b957762a5ae2536b2255a8c16155b8dfac (diff)
downloaduhd-b23ac38dabe54145b385c50a1f4afa16c0dc3b15.tar.gz
uhd-b23ac38dabe54145b385c50a1f4afa16c0dc3b15.tar.bz2
uhd-b23ac38dabe54145b385c50a1f4afa16c0dc3b15.zip
u2/u2p: speed up time_64, and remove readbacks on simple_gemac wb regs
Diffstat (limited to 'usrp2')
-rw-r--r--usrp2/simple_gemac/simple_gemac_wb.v20
-rw-r--r--usrp2/timing/time_64bit.v4
2 files changed, 13 insertions, 11 deletions
diff --git a/usrp2/simple_gemac/simple_gemac_wb.v b/usrp2/simple_gemac/simple_gemac_wb.v
index bcf18f9a8..0ddb8398a 100644
--- a/usrp2/simple_gemac/simple_gemac_wb.v
+++ b/usrp2/simple_gemac/simple_gemac_wb.v
@@ -161,19 +161,19 @@ module simple_gemac_wb
always @(posedge wb_clk)
case(wb_adr[7:2])
- 0 : wb_dat_o <= misc_settings;
- 1 : wb_dat_o <= ucast_addr[47:32];
- 2 : wb_dat_o <= ucast_addr[31:0];
- 3 : wb_dat_o <= mcast_addr[47:32];
- 4 : wb_dat_o <= mcast_addr[31:0];
- 5 : wb_dat_o <= {NoPre,Divider};
- 6 : wb_dat_o <= MIIADDRESS;
- 7 : wb_dat_o <= CtrlData;
+ //0 : wb_dat_o <= misc_settings;
+ //1 : wb_dat_o <= ucast_addr[47:32];
+ //2 : wb_dat_o <= ucast_addr[31:0];
+ //3 : wb_dat_o <= mcast_addr[47:32];
+ //4 : wb_dat_o <= mcast_addr[31:0];
+ //5 : wb_dat_o <= {NoPre,Divider};
+ //6 : wb_dat_o <= MIIADDRESS;
+ //7 : wb_dat_o <= CtrlData;
8 : wb_dat_o <= MIICOMMAND;
9 : wb_dat_o <= MIISTATUS;
10: wb_dat_o <= MIIRX_DATA;
- 11: wb_dat_o <= pause_time;
- 12: wb_dat_o <= pause_thresh;
+ //11: wb_dat_o <= pause_time;
+ //12: wb_dat_o <= pause_thresh;
endcase // case (wb_adr[7:2])
endmodule // simple_gemac_wb
diff --git a/usrp2/timing/time_64bit.v b/usrp2/timing/time_64bit.v
index 8c9090a35..4fefcc488 100644
--- a/usrp2/timing/time_64bit.v
+++ b/usrp2/timing/time_64bit.v
@@ -161,7 +161,9 @@ module time_64bit
assign mimo_secs = vita_time_rcvd[63:32];
assign mimo_ticks = vita_time_rcvd[31:0] + {16'd0,sync_delay};
- assign mimo_sync_now = mimo_sync & sync_rcvd & (mimo_ticks <= TICKS_PER_SEC);
+ //assign mimo_sync_now = mimo_sync & sync_rcvd & (mimo_ticks <= TICKS_PER_SEC);
+ // for timing purposes, assume sync_delay less than 10k
+ assign mimo_sync_now = mimo_sync & sync_rcvd & (vita_time_rcvd <= (TICKS_PER_SEC-10000));
assign debug = { { 24'b0} ,
{ 2'b0, exp_time_in, exp_time_out, mimo_sync, mimo_sync_now, sync_rcvd, send_sync} };