-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings_pkg.sv
44 lines (44 loc) · 2.32 KB
/
settings_pkg.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//-----------------------------------------------------------------------------
// Original Author: Alina Ivanova
// email: [email protected]
// web: www.alinaivanovaoff.com
// settings_pkg.sv
// Created: 11.10.2016
//
// Settings package.
//
//-----------------------------------------------------------------------------
// Copyright (c) 2016 by Alina Ivanova
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//-----------------------------------------------------------------------------
package settings_pkg;
//-----------------------------------------------------------------------------
// Parameter Declaration(s)
//-----------------------------------------------------------------------------
parameter CHANNEL_SIZE = 2;
//-----------------------------------------------------------------------------
parameter K = 1;//25;
parameter L = 2;//20;
parameter M_1 = 2;//3
parameter M_2 = 4;//17
//-----------------------------------------------------------------------------
parameter DATA_SIZE = 16;
parameter SHIFT_REG_SIZE = 300;
parameter CONSTANT_SIZE = 8;
parameter EXTRA_BITS = 7 + 5;
parameter FULL_SIZE = DATA_SIZE + EXTRA_BITS;
parameter DKL_M_2_TRAPEZ_RATE_SIZE = 3;
parameter PIPELINE_STAGES = 8;
//-----------------------------------------------------------------------------
endpackage: settings_pkg