aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp2/top/u1e_ethdebug/u1e.v
blob: 2a543a313f8609a37ddf75c0ce98dae28c4a7d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////

//`define DCM 1

module u1e
  (output [3:0] debug_led, output [31:0] debug, output [1:0] debug_clk,
   input debug_pb,

   // GPMC
   input EM_CLK, input [15:0] EM_D, input [10:1] EM_A,
   input EM_WAIT0, input EM_NCS4, input EM_NCS5, input EM_NCS6, input EM_NWE, input EM_NOE,
   input EM_NADV_ALE,

   input overo_gpio64, input overo_gpio176
   );

   assign debug_clk = {EM_CLK, EM_NADV_ALE};

   assign debug_led = {1'b0, EM_A[9], EM_A[8], debug_pb};

   assign debug = { {overo_gpio64, overo_gpio176, EM_WAIT0, EM_NCS4, EM_NCS5, EM_NCS6, EM_NWE, EM_NOE },
		    { EM_A[10], EM_A[7:1] },
		    { EM_D[15:8] },
		    { EM_D[7:0] } };
   

endmodule // u1e