blob: 488e4cc55e05af75722ddb6bc0c7169c7f8c5358 [file] [log] [blame]
Tim Edwardsb86fc842020-10-13 17:11:54 -04001/*
2 *-------------------------------------------------------------
3 *
4 * user_project_wrapper
5 *
6 * This wrapper enumerates all of the pins available to the
7 * user for the user project.
8 *
9 * An example user project is provided in this wrapper. The
10 * example should be removed and replaced with the actual
11 * user project.
12 *
13 *-------------------------------------------------------------
14 */
15
16module user_project_wrapper #(
Tim Edwardsb86fc842020-10-13 17:11:54 -040017 parameter BITS = 32
18)(
19 inout vdda1, // User area 1 3.3V supply
20 inout vdda2, // User area 2 3.3V supply
21 inout vssa1, // User area 1 analog ground
22 inout vssa2, // User area 2 analog ground
23 inout vccd1, // User area 1 1.8V supply
24 inout vccd2, // User area 2 1.8v supply
25 inout vssd1, // User area 1 digital ground
26 inout vssd2, // User area 2 digital ground
27
28 // Wishbone Slave ports (WB MI A)
29 input wb_clk_i,
30 input wb_rst_i,
31 input wbs_stb_i,
32 input wbs_cyc_i,
33 input wbs_we_i,
34 input [3:0] wbs_sel_i,
35 input [31:0] wbs_dat_i,
36 input [31:0] wbs_adr_i,
37 output wbs_ack_o,
38 output [31:0] wbs_dat_o,
39
40 // Logic Analyzer Signals
41 input [127:0] la_data_in,
42 output [127:0] la_data_out,
43 input [127:0] la_oen,
44
45 // IOs
Ahmed Ghazy22d29d62020-10-28 03:42:02 +020046 input [`MPRJ_IO_PADS-1:0] io_in,
47 output [`MPRJ_IO_PADS-1:0] io_out,
48 output [`MPRJ_IO_PADS-1:0] io_oeb,
Tim Edwardsb86fc842020-10-13 17:11:54 -040049
50 // Independent clock (on independent integer divider)
51 input user_clock2
52);
53
54 /*--------------------------------------*/
55 /* User project is instantiated here */
56 /*--------------------------------------*/
57
Ahmed Ghazy22d29d62020-10-28 03:42:02 +020058 user_proj_example mprj (
Tim Edwardsb86fc842020-10-13 17:11:54 -040059 .vdda1(vdda1), // User area 1 3.3V power
60 .vdda2(vdda2), // User area 2 3.3V power
61 .vssa1(vssa1), // User area 1 analog ground
62 .vssa2(vssa2), // User area 2 analog ground
63 .vccd1(vccd1), // User area 1 1.8V power
64 .vccd2(vccd2), // User area 2 1.8V power
65 .vssd1(vssd1), // User area 1 digital ground
66 .vssd2(vssd2), // User area 2 digital ground
67
68 // MGMT core clock and reset
69
70 .wb_clk_i(wb_clk_i),
71 .wb_rst_i(wb_rst_i),
72
Ahmed Ghazy22d29d62020-10-28 03:42:02 +020073 // MGMT SoC Wishbone Slave
Tim Edwardsb86fc842020-10-13 17:11:54 -040074
75 .wbs_cyc_i(wbs_cyc_i),
76 .wbs_stb_i(wbs_stb_i),
77 .wbs_we_i(wbs_we_i),
78 .wbs_sel_i(wbs_sel_i),
79 .wbs_adr_i(wbs_adr_i),
80 .wbs_dat_i(wbs_dat_i),
81 .wbs_ack_o(wbs_ack_o),
82 .wbs_dat_o(wbs_dat_o),
83
84 // Logic Analyzer
85
86 .la_data_in(la_data_in),
87 .la_data_out(la_data_out),
88 .la_oen (la_oen),
89
90 // IO Pads
91
92 .io_in (io_in),
93 .io_out(io_out),
94 .io_oeb(io_oeb)
95 );
96
97endmodule // user_project_wrapper