]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
ping/pong added to RJ again. LVCMOS25 sucks.
authorMichael Boehmer <mboehmer@ph.tum.de>
Fri, 22 Apr 2022 11:37:29 +0000 (13:37 +0200)
committerMichael Boehmer <mboehmer@ph.tum.de>
Fri, 22 Apr 2022 11:37:29 +0000 (13:37 +0200)
cts/trb3sc_cts.vhd

index c28c8aae67103d45baa6ab1e35dd5403ae58b49c..84e894d2e142df29f4d33674fa5634dea17c045f 100644 (file)
@@ -300,6 +300,8 @@ architecture trb3sc_arch of trb3sc_cts is
 
   signal cal_phase_q                 : std_logic;
   
+  signal rj_io_q                     : std_logic_vector(1 downto 0);
+  
 begin
 
   THE_TIME_COUNTER_PROC: process( clk_full_osc )
@@ -712,6 +714,25 @@ HDR_IO(4)  <= rx_dlm_q;
 HDR_IO(6)  <= start_ping_q;
 HDR_IO(8)  <= start_pong_q;
 HDR_IO(10) <= '0';
+
+  THE_PING_OR_LVDS: OFS1P3DX
+  port map(
+    SP    => '1',
+    CD    => '0',
+    SCLK  => master_clk_i,
+    D     => ping_i,
+    Q     => rj_io_q(0)
+  );
+
+  THE_PONG_OR_LVDS: OFS1P3DX
+  port map(
+    SP    => '1',
+    CD    => '0',
+    SCLK  => pong_clk_i,
+    D     => pong_i,
+    Q     => rj_io_q(1)
+  );
+
 --------------------------------------------------------------------------------------------------------
 --------------------------------------------------------------------------------------------------------
 
@@ -1213,8 +1234,8 @@ end generate;
     REFOUT <= (others => cts_trigger_out);
   end generate;
   
-  RJ_IO(0)                           <= '0'; --tx_dlm_i; --cts_trigger_out;
-  RJ_IO(1)                           <= '0'; --rx_dlm_i;
+  RJ_IO(0)                           <= rj_io_q(0); --tx_dlm_i; --cts_trigger_out;
+  RJ_IO(1)                           <= rj_io_q(1); --rx_dlm_i;
 ---------------------------------------------------------------------------
 -- LED
 ---------------------------------------------------------------------------