From 8179083e5c9527171ba5f73a1db25b9d14f9355b Mon Sep 17 00:00:00 2001 From: Peter Lemmens Date: Thu, 16 Jan 2014 15:20:53 +0100 Subject: [PATCH] Stable (or at least it really looks that way) but not quite synchronous All crashes (3 sofar) of trbnet have been solved with 'trbcmd reset'. Changes to soda: - The source now has a tx-fifo (fixed delay) but NO rx-fifo. - Both sides have a watchdog implemented. It checks 'got_link_ready'. If this is absent the watchdog fires and resets the rx-control fsm. - Calibration works with: 'trbcmd w 0xf355 0xbe00 0x40000000;trbcmd w 0xf355 0xbe00 0x00000000; trbcmd r 0xf355 0xbe02' - The client still has an rx-fifo ; this will be next to go. --- soda_client.ldf | 4 +- soda_client.lpf | 2 +- soda_source.lpf | 2 +- source/med_ecp3_sfp_sync_down.vhd | 54 +++++++--- source/med_ecp3_sfp_sync_up.vhd | 37 +++++-- source/serdes_sync_downstream.ipx | 14 +-- source/serdes_sync_downstream.lpc | 6 +- source/serdes_sync_downstream.txt | 2 +- source/serdes_sync_downstream.vhd | 3 +- source/soda_client.vhd | 4 + source/soda_components.vhd | 6 +- source/soda_packet_builder.vhd | 6 +- source/soda_reply_pkt_builder.vhd | 160 ++++++++++++++++++++++-------- source/trb3_periph_sodaclient.vhd | 105 ++++++++++---------- 14 files changed, 266 insertions(+), 139 deletions(-) diff --git a/soda_client.ldf b/soda_client.ldf index 4e37427..c711e8d 100644 --- a/soda_client.ldf +++ b/soda_client.ldf @@ -4,7 +4,7 @@