Procházet zdrojové kódy

cores/e1: Export tick for TX and RX path

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut před 5 roky
rodič
revize
e51318fa05
1 změnil soubory, kde provedl 8 přidání a 3 odebrání
  1. 8 3
      cores/e1/rtl/e1_wb.v

+ 8 - 3
cores/e1/rtl/e1_wb.v

@@ -66,8 +66,10 @@ module e1_wb #(
 	input  wire bus_we,
 	output wire bus_ack,
 
-	// Interrupt
+	// External strobes
 	output reg  irq,
+	output wire tick_tx,
+	output wire tick_rx,
 
 	// Common
 	input  wire clk,
@@ -459,8 +461,8 @@ module e1_wb #(
 			tx_underflow <= (tx_underflow & ~ctx_clear) | bdtx_miss;
 
 
-	// IRQ
-	// ---
+	// External strobes
+	// ----------------
 
 	always @(posedge clk or posedge rst)
 		if (rst)
@@ -468,4 +470,7 @@ module e1_wb #(
 		else
 			irq <= ~bro_empty | rx_overflow | ~bto_empty | tx_underflow;
 
+	assign tick_tx = int_tick;	/* tick used for TX */
+	assign tick_rx = ext_tick;	/* tick recovered from RX */
+
 endmodule // e1_wb