aboutsummaryrefslogtreecommitdiffstats
path: root/TestVerilog/TestVerilog.v.bak
blob: 37e2a34764c0cf3bc2d834be4eec089c722b5051 (plain)
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
module column_chooser(first_red_pos_x, sec_red_pos_x, red_pos_y, top_grid_y, top_grid_x0, top_grid_x1, top_grid_x2, top_grid_x3, top_grid_x4, 
                      top_grid_x5, top_grid_x6, top_grid_x7, top_grid_x8, top_grid_x9, top_grid_x10, top_grid_x11, top_grid_x12, 
                      top_grid_x13, top_grid_x14, top_grid_x15, top_grid_x16, top_grid_x17, top_grid_x18, top_grid_x19, top_grid_x20, 
                      top_grid_x21, top_grid_x22, top_grid_x23, top_grid_x24, top_grid_x25, top_grid_x26, top_grid_x27, top_grid_x28, 
                      top_grid_x29, top_grid_x30, top_grid_x31);
   input [9:0] first_red_pos_x;
   input [9:0] sec_red_pos_x;
   input [9:0] red_pos_y;

   output [9:0] top_grid_y;
   output [9:0] top_grid_x0;
   output [9:0] top_grid_x1;
   output [9:0] top_grid_x2;
   output [9:0] top_grid_x3;
   output [9:0] top_grid_x4;
   output [9:0] top_grid_x5;
   output [9:0] top_grid_x6;
   output [9:0] top_grid_x7;
   output [9:0] top_grid_x8;
   output [9:0] top_grid_x9;
   output [9:0] top_grid_x10;
   output [9:0] top_grid_x11;
   output [9:0] top_grid_x12;
   output [9:0] top_grid_x13;
   output [9:0] top_grid_x14;
   output [9:0] top_grid_x15;
   output [9:0] top_grid_x16;
   output [9:0] top_grid_x17;
   output [9:0] top_grid_x18;
   output [9:0] top_grid_x19;
   output [9:0] top_grid_x20;
   output [9:0] top_grid_x21;
   output [9:0] top_grid_x22;
   output [9:0] top_grid_x23;
   output [9:0] top_grid_x24;
   output [9:0] top_grid_x25;
   output [9:0] top_grid_x26;
   output [9:0] top_grid_x27;
   output [9:0] top_grid_x28;
   output [9:0] top_grid_x29;
   output [9:0] top_grid_x30;
   output [9:0] top_grid_x31;

   top_grid_y = red_pos_y;
   top_grid_x0 = first_red_pos_x;
   top_grid_x1 = ((first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x2 = (2 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x3 = (3 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x4 = (4 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x5 = (5 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x6 = (6 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x7 = (7 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x8 = (8 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x9 = (9 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x10 = (10 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x11 = (11 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x12 = (12 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x13 = (13 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x14 = (14 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x15 = (15 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x16 = (16 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x17 = (17 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x18 = (18 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x19 = (19 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x20 = (20 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x21 = (21 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x22 = (22 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x23 = (23 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x24 = (24 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x25 = (25 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x26 = (26 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x27 = (27 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x28 = (28 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x29 = (29 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x30 = (30 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
   top_grid_x31 = (31 * (first_red_pos_x - sec_red_pos_x) / 32) + first_red_pos_x;
endmodule // column_chooser