-
Notifications
You must be signed in to change notification settings - Fork 1
/
interfaces_pkg.sv
42 lines (42 loc) · 2.24 KB
/
interfaces_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
//-----------------------------------------------------------------------------
// Original Author: Alina Ivanova
// email: alina.al.ivanova@gmail.com
// web: www.alinaivanovaoff.com
// interfaces_pkg.sv
// Created: 11.01.2016
//
// Interfaces 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/>.
//-----------------------------------------------------------------------------
`timescale 1 ns / 1 ps
//-----------------------------------------------------------------------------
interface template_data_intf import settings_pkg::*; (
input wire clk,
input wire reset);
wire signed [DATA_SIZE-1:0] input_data;
wire enable;
modport master (output input_data, enable);
modport slave (input input_data, enable);
endinterface: template_data_intf
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
interface template_result_intf import settings_pkg::*; ();
wire signed [FULL_SIZE-1:0] output_data;
wire output_data_valid;
modport master (output output_data, output_data_valid);
modport slave (input output_data, output_data_valid);
endinterface: template_result_intf