aboutsummaryrefslogtreecommitdiff
path: root/rtl/config_pkg.sv
blob: 0120b146ae9ed3117521e3bfe41b85fcb6487e50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: CERN-OHL-P-2.0 */

package config_pkg;

  /* Word width as defined in the RISC-V spec. */
  localparam int unsigned XLEN = 32;

  /* We use a byte-sliced datapath, inspired by the
   * classic bit-sliced architecture of old CPUs. */
  localparam int unsigned SLICE_WIDTH      = 8;

  /* The RV32E ISA defines 16 general-purpose registers.
   * We have two read ports to allow for pipelined reads. */
  localparam int unsigned REG_ADDR_WIDTH     = 4;
  localparam int unsigned REG_NUM_READ_PORTS = 2;

endpackage : config_pkg