agorararmard | 6c766a8 | 2020-12-10 18:13:12 +0200 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2020 Efabless Corporation |
agorararmard | e5780bf | 2020-12-09 21:27:56 +0000 | [diff] [blame] | 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. |
agorararmard | afa96ea | 2020-12-09 23:37:31 +0200 | [diff] [blame] | 14 | // SPDX-License-Identifier: Apache-2.0 |
agorararmard | e5780bf | 2020-12-09 21:27:56 +0000 | [diff] [blame] | 15 | |
Matt Venn | 08cd6eb | 2020-11-16 12:01:14 +0100 | [diff] [blame] | 16 | `default_nettype none |
Ahmed Ghazy | 22d29d6 | 2020-10-28 03:42:02 +0200 | [diff] [blame] | 17 | // Global parameters |
| 18 | |
| 19 | `define MPRJ_IO_PADS 38 |
| 20 | `define MPRJ_PWR_PADS 4 /* vdda1, vccd1, vdda2, vccd2 */ |
| 21 | |
| 22 | // Size of soc_mem_synth |
Ahmed Ghazy | 22d29d6 | 2020-10-28 03:42:02 +0200 | [diff] [blame] | 23 | |
| 24 | // Type and size of soc_mem |
Manar | ec9b536 | 2020-10-28 22:24:06 +0200 | [diff] [blame] | 25 | // `define USE_OPENRAM |
Manar | 68e0363 | 2020-11-09 13:25:13 +0200 | [diff] [blame] | 26 | `define USE_CUSTOM_DFFRAM |
Ahmed Ghazy | 2517fa8 | 2020-11-08 23:34:41 +0200 | [diff] [blame] | 27 | // don't change the following without double checking addr widths |
Ahmed Ghazy | 22d29d6 | 2020-10-28 03:42:02 +0200 | [diff] [blame] | 28 | `define MEM_WORDS 256 |
Manar | 55ec369 | 2020-10-30 16:32:18 +0200 | [diff] [blame] | 29 | |
Manar | 8f13179 | 2020-11-11 16:38:32 +0200 | [diff] [blame] | 30 | // Number of columns in the custom memory; takes one of three values: |
| 31 | // 1 column : 1 KB, 2 column: 2 KB, 4 column: 4KB |
| 32 | `define COLS 1 |
| 33 | |
Manar | ffe6cad | 2020-11-09 19:09:04 +0200 | [diff] [blame] | 34 | // not really parameterized but just to easily keep track of the number |
| 35 | // of ram_block across different modules |
manarabdelaty | 08dd483 | 2020-12-03 19:27:08 +0200 | [diff] [blame] | 36 | `define RAM_BLOCKS 2 |
| 37 | |
| 38 | // Clock divisor default value |
manarabdelaty | 589a528 | 2020-12-05 01:06:48 +0200 | [diff] [blame] | 39 | `define CLK_DIV 3'b010 |
| 40 | |
| 41 | // GPIO conrol default mode and enable |
| 42 | `define DM_INIT 3'b110 |
| 43 | `define OENB_INIT 1'b1 |