Matt Venn | dec8981 | 2022-08-02 12:05:29 +0200 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2020 Efabless Corporation |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | // SPDX-License-Identifier: Apache-2.0 |
| 15 | |
| 16 | `default_nettype none |
| 17 | /* |
| 18 | *------------------------------------------------------------- |
| 19 | * |
| 20 | * user_project_wrapper |
| 21 | * |
| 22 | * This wrapper enumerates all of the pins available to the |
| 23 | * user for the user project. |
| 24 | * |
| 25 | * An example user project is provided in this wrapper. The |
| 26 | * example should be removed and replaced with the actual |
| 27 | * user project. |
| 28 | * |
| 29 | * THIS FILE HAS BEEN GENERATED USING multi_tools_project CODEGEN |
| 30 | * IF YOU NEED TO MAKE EDITS TO IT, EDIT codegen/caravel_iface_header.txt |
| 31 | * |
| 32 | *------------------------------------------------------------- |
| 33 | */ |
| 34 | |
| 35 | module user_project_wrapper #( |
| 36 | parameter BITS = 32 |
| 37 | )( |
| 38 | `ifdef USE_POWER_PINS |
| 39 | inout vdda1, // User area 1 3.3V supply |
| 40 | inout vdda2, // User area 2 3.3V supply |
| 41 | inout vssa1, // User area 1 analog ground |
| 42 | inout vssa2, // User area 2 analog ground |
| 43 | inout vccd1, // User area 1 1.8V supply |
| 44 | inout vccd2, // User area 2 1.8v supply |
| 45 | inout vssd1, // User area 1 digital ground |
| 46 | inout vssd2, // User area 2 digital ground |
| 47 | `endif |
| 48 | |
| 49 | // Wishbone Slave ports (WB MI A) |
| 50 | input wb_clk_i, |
| 51 | input wb_rst_i, |
| 52 | input wbs_stb_i, |
| 53 | input wbs_cyc_i, |
| 54 | input wbs_we_i, |
| 55 | input [3:0] wbs_sel_i, |
| 56 | input [31:0] wbs_dat_i, |
| 57 | input [31:0] wbs_adr_i, |
| 58 | output wbs_ack_o, |
| 59 | output [31:0] wbs_dat_o, |
| 60 | |
| 61 | // Logic Analyzer Signals |
| 62 | input [127:0] la_data_in, |
| 63 | output [127:0] la_data_out, |
| 64 | input [127:0] la_oenb, |
| 65 | |
| 66 | // IOs |
| 67 | input [`MPRJ_IO_PADS-1:0] io_in, |
| 68 | output [`MPRJ_IO_PADS-1:0] io_out, |
| 69 | output [`MPRJ_IO_PADS-1:0] io_oeb, |
| 70 | |
| 71 | // Analog (direct connection to GPIO pad---use with caution) |
| 72 | // Note that analog I/O is not available on the 7 lowest-numbered |
| 73 | // GPIO pads, and so the analog_io indexing is offset from the |
| 74 | // GPIO indexing by 7 (also upper 2 GPIOs do not have analog_io). |
| 75 | inout [`MPRJ_IO_PADS-10:0] analog_io, |
| 76 | |
| 77 | // Independent clock (on independent integer divider) |
| 78 | input user_clock2, |
| 79 | |
| 80 | // User maskable interrupt signals |
| 81 | output [2:0] user_irq |
| 82 | ); |
| 83 | |
| 84 | // start of module instantiation |