-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththinking.sv
More file actions
executable file
·28 lines (22 loc) · 855 Bytes
/
thinking.sv
File metadata and controls
executable file
·28 lines (22 loc) · 855 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
module maze_world #(size_y = 20, size_x = 40)(
input [0:size_x-1] desired_maze [size_y-1:0],
output [0:size_x - 1] maze [size_y - 1:0], down_constraint [size_y - 1:0], up_constraint [size_y - 1:0], left_constraint [size_y - 1:0], right_constraint [size_y - 1:0]
);
assign maze = desired_maze;
down_checker_big #(.size_y(size_y), .size_x(size_x)) dcb (
.maze(desired_maze),
.down_constraint(down_constraint)
);
up_checker_big #(.size_y(size_y), .size_x(size_x)) ucb (
.maze(desired_maze),
.up_constraint(up_constraint)
);
left_checker_big #(.size_y(size_y), .size_x(size_x)) lcb (
.maze(desired_maze),
.left_constraint(left_constraint)
);
right_checker_big #(.size_y(size_y), .size_x(size_x)) rcb (
.maze(desired_maze),
.right_constraint(right_constraint)
);
endmodule