blob: 3c9e5951246bc9860982591fe3e8fda335de6ec8 [file] [log] [blame]
agorararmard6c766a82020-12-10 18:13:12 +02001// SPDX-FileCopyrightText: 2020 Efabless Corporation
agorararmarde5780bf2020-12-09 21:27:56 +00002//
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.
agorararmardafa96ea2020-12-09 23:37:31 +020014// SPDX-License-Identifier: Apache-2.0
agorararmarde5780bf2020-12-09 21:27:56 +000015
Matt Venn08cd6eb2020-11-16 12:01:14 +010016`default_nettype none
Ahmed Ghazy22d29d62020-10-28 03:42:02 +020017// 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 Ghazy22d29d62020-10-28 03:42:02 +020023
24// Type and size of soc_mem
Manarec9b5362020-10-28 22:24:06 +020025// `define USE_OPENRAM
Manar68e03632020-11-09 13:25:13 +020026`define USE_CUSTOM_DFFRAM
Ahmed Ghazy2517fa82020-11-08 23:34:41 +020027// don't change the following without double checking addr widths
Ahmed Ghazy22d29d62020-10-28 03:42:02 +020028`define MEM_WORDS 256
Manar55ec3692020-10-30 16:32:18 +020029
Manar8f131792020-11-11 16:38:32 +020030// 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
Manarffe6cad2020-11-09 19:09:04 +020034// not really parameterized but just to easily keep track of the number
35// of ram_block across different modules
manarabdelaty08dd4832020-12-03 19:27:08 +020036`define RAM_BLOCKS 2
37
38// Clock divisor default value
manarabdelaty589a5282020-12-05 01:06:48 +020039`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