-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRowColGenerator.v
More file actions
39 lines (37 loc) · 774 Bytes
/
RowColGenerator.v
File metadata and controls
39 lines (37 loc) · 774 Bytes
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 18:41:53 04/10/2018
// Design Name:
// Module Name: RowColGenerator
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module RowColGenerator(
input clk,
input [9:0] xcount,
input [9:0] ycount,
input indisplay,
output [3:0] row,
output [3:0] col
);
always@(posedge clk)
begin
if(indisplay)
begin
row <= xcount/80;
col <= ycount/60;
end
end
endmodule