-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpx_datacx2_ff.v
91 lines (60 loc) · 2.51 KB
/
cpx_datacx2_ff.v
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// ========== Copyright Header Begin ==========================================
//
// OpenSPARC T1 Processor File: cpx_datacx2_ff.v
// Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
//
// The above named program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public
// License version 2 as published by the Free Software Foundation.
//
// The above named 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 work; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
//
// ========== Copyright Header End ============================================
////////////////////////////////////////////////////////////////////////
// Global header file includes
////////////////////////////////////////////////////////////////////////
`include "sys.h" // system level definition file which contains the
// time scale definition
`include "iop.h"
////////////////////////////////////////////////////////////////////////
// Local header file includes / local defines
////////////////////////////////////////////////////////////////////////
module cpx_datacx2_ff(/*AUTOARG*/
// Outputs
cpx_spc_data_cx2, cpx_spc_data_rdy_cx2, so,
// Inputs
cpx_spc_data_cx_l, cpx_spc_data_rdy_cx, rclk, si, se
);
output [`CPX_WIDTH-1:0] cpx_spc_data_cx2;
output cpx_spc_data_rdy_cx2;
output so;
input [`CPX_WIDTH-1:0] cpx_spc_data_cx_l;
input cpx_spc_data_rdy_cx;
input rclk;
input si;
input se;
wire [`CPX_WIDTH-1:0] cpx_spc_data_cx2_l;
dff_s #(`CPX_WIDTH) dff_ccx_data_spc(
.din (cpx_spc_data_cx_l[`CPX_WIDTH-1:0]),
.q (cpx_spc_data_cx2_l[`CPX_WIDTH-1:0]),
.clk (rclk),
.se (1'b0),
.si (`CPX_WIDTH'd0),
.so ());
assign cpx_spc_data_cx2 = ~cpx_spc_data_cx2_l;
dff_s #(1) dff_ccx_datardy_spc(
.din (cpx_spc_data_rdy_cx),
.q (cpx_spc_data_rdy_cx2),
.clk (rclk),
.se (1'b0),
.si (1'd0),
.so ());
endmodule // cpx_grant_ff