-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpadding_top.v
99 lines (72 loc) · 2.18 KB
/
padding_top.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
92
93
94
95
96
97
98
99
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2024/08/26 22:13:17
// Design Name:
// Module Name: padding_top
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module padding_top (
input clk,
input reset,
input en,
input [3327:0] R_input,
input [3327:0] G_input,
input [3327:0] B_input,
output [3343:0] R_row0, //418x8=3344
output [3343:0] G_row0,
output [3343:0] B_row0,
output [3343:0] R_row1, //418x8=3344
output [3343:0] G_row1,
output [3343:0] B_row1,
output [3343:0] R_row2, //418x8=3344
output [3343:0] G_row2,
output [3343:0] B_row2
);
wire [3343:0] R_padded;
wire [3343:0] G_padded;
wire [3343:0] B_padded;
wire [8:0] count;
padding padding(
.clk(clk),
.reset(reset),
.en(en),
.count(count),
.R_input(R_input),
.G_input(G_input),
.B_input(B_input),
.R_padded(R_padded),
.G_padded(G_padded),
.B_padded(B_padded)
);
padding_reg padding_reg (
.clk(clk),
.reset(reset),
.en(en),
.R_padded(R_padded),
.G_padded(G_padded),
.B_padded(B_padded),
.R_row0(R_row0), //418x8=3344
.G_row0(G_row0),
.B_row0(B_row0),
.R_row1(R_row1), //418x8=3344
.G_row1(G_row1),
.B_row1(B_row1),
.R_row2(R_row2), //418x8=3344
.G_row2(G_row2),
.B_row2(B_row2),
.count(count)
);
endmodule