diff options
author | zedarider <ymherklotz@gmail.com> | 2016-05-07 11:13:03 +0200 |
---|---|---|
committer | zedarider <ymherklotz@gmail.com> | 2016-05-07 11:13:03 +0200 |
commit | cbd35fed343460111572c0fa0978c810a98d8cb6 (patch) | |
tree | a8d511629d74605fbb4a0c8ac10f9b7512bafd18 | |
parent | 67a670f7cc2548cd2c06243f4fecbc77c088ea2b (diff) | |
download | verilog-cbd35fed343460111572c0fa0978c810a98d8cb6.tar.gz verilog-cbd35fed343460111572c0fa0978c810a98d8cb6.zip |
adding column_chooser
-rw-r--r-- | column_chooser.v | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/column_chooser.v b/column_chooser.v new file mode 100644 index 0000000..37e2a34 --- /dev/null +++ b/column_chooser.v @@ -0,0 +1,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 |