Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Athokshay Ashok
VHDL-Maze
Commits
0790e73a
Unverified
Commit
0790e73a
authored
Apr 26, 2019
by
rmega12
Committed by
GitHub
Apr 26, 2019
Browse files
pattern module for the night
parent
08d29a90
Changes
1
Hide whitespace changes
Inline
Side-by-side
vhdl/pattern.vhd
View file @
0790e73a
...
...
@@ -22,8 +22,8 @@ signal RGB : std_logic_vector (5 downto 0);
begin
RGB
<=
"111111"
when
(
count_horz
<
(
paddle_x
+
40
)
and
count_horz
>
(
paddle_x
-
40
)
and
count_vert
<
45
5
and
count_vert
>
445
)
--The paddle
or
(
count_horz
<
63
or
count_horz
>
57
6
or
count_vert
<
9
)
--The border
RGB
<=
"111111"
when
(
count_horz
<
(
paddle_x
+
81
)
and
count_horz
>
paddle_x
-
1
and
count_vert
<
45
6
and
count_vert
>
445
)
--The paddle
or
(
count_horz
<
63
or
count_horz
>
57
4
or
count_vert
<
9
)
--The border
or
(
(
count_horz
=
ball_x
+
4
or
count_horz
=
ball_x
-
4
)
and
(
count_vert
<
ball_y
+
2
and
count_vert
>
ball_y
-
2
)
)
--Ball top/bottom row 1
or
(
(
count_horz
=
ball_x
+
3
or
count_horz
=
ball_x
-
3
)
and
(
count_vert
<
ball_y
+
3
and
count_vert
>
ball_y
-
3
)
)
--Ball top/bottom row 2
or
(
(
count_horz
=
ball_x
+
2
or
count_horz
=
ball_x
-
2
)
and
(
count_vert
<
ball_y
+
4
and
count_vert
>
ball_y
-
4
)
)
--Ball top/bottom row 3
...
...
@@ -32,3 +32,4 @@ RGB <= "111111" when (count_horz < (paddle_x + 40) and count_horz > (paddle_x -
RGB_pattern
<=
RGB
;
end
synth
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment