-
Notifications
You must be signed in to change notification settings - Fork 0
/
bouncing_ball.vhd
588 lines (564 loc) · 20.8 KB
/
bouncing_ball.vhd
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
---------------------------------------------------------------------------
-- BouncingBall.vhd --
-- --
-- Modeled off bouncing_ball.vhd by Stephen Kempf and Viral Mehta --
-- --
-- by Raj Vinjamuri and Sai Koppula --
-- Final Modifications by Raj Vinjamuri and Sai Koppula --
---------------------------------------------------------------------------
---------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity Body_mapper is
Port ( Up, Do, Le, Ri : in std_logic; --input signals used by ball for movement
Clk : in std_logic;
Reset : in std_logic;
Start : in std_logic;
Seed : in std_logic_vector(17 downto 0);
ResScore : in std_logic;
Red : out std_logic_vector(9 downto 0);
Green : out std_logic_vector(9 downto 0);
Blue : out std_logic_vector(9 downto 0);
VGA_clk : out std_logic;
sync : out std_logic;
blank : out std_logic;
vs : out std_logic;
hs : out std_logic;
game_statusOut : out std_logic_vector(3 downto 0);
scoreOutH, scoreOutL : out std_logic_vector(3 downto 0));
end Body_mapper;
architecture Behavioral of Body_mapper is
-----------------------------------------------------
component game_handler is
Port ( frame_clk : in std_logic;
paddle_loss_statusIn : in std_logic_vector(1 downto 0);
win_statusIn, ResetIn, ResetScore : in std_logic;
brick_hitIn : in std_logic_vector(19 downto 0);
score: out std_logic_vector(7 downto 0);
game_status : out std_logic_vector(3 downto 0));
end component;
-----------------------------------------------------
component ball is
Port ( --Up, Do : in std_logic;
Le, Ri : in std_logic;
clk : in std_logic;
Reset : in std_logic;
frame_clk : in std_logic;
StartMove : in std_logic;
seedIn : in std_logic_vector(17 downto 0);
BallX : out std_logic_vector(10 downto 0);
BallY : out std_logic_vector(10 downto 0);
BallS : out std_logic_vector(10 downto 0);
PaddleX : in std_logic_vector(10 downto 0);
PaddleY : in std_logic_vector(10 downto 0);
PaddleS : in std_logic_vector(10 downto 0);
BricksX : in std_logic_vector(219 downto 0);
BricksY : in std_logic_vector(219 downto 0);
BricksOn : in std_logic_vector(19 downto 0);
paddle_loss_status : out std_logic_vector(1 downto 0));
end component;
-----------------------------------------------------
component paddle is
Port ( Up, Do, Le, Ri : in std_logic; --where those movement signals go, yo :)
Reset : in std_logic;
frame_clk : in std_logic;
PaddleX : out std_logic_vector(10 downto 0);
PaddleY : out std_logic_vector(10 downto 0);
PaddleS : out std_logic_vector(10 downto 0));
end component;
-----------------------------------------------------
component vga_controller is
Port ( clk : in std_logic;
reset : in std_logic;
hs : out std_logic;
vs : out std_logic;
pixel_clk : out std_logic;
blank : out std_logic;
sync : out std_logic;
DrawX : out std_logic_vector(10 downto 0);
DrawY : out std_logic_vector(10 downto 0));
end component;
-----------------------------------------------------
component Color_Mapper is
Port ( game_status : in std_logic_vector(3 downto 0);
BallX, BallY : in std_logic_vector(10 downto 0);
PaddleX, PaddleY : in std_logic_vector (10 downto 0);
BricksX, BricksY : in std_logic_vector(219 downto 0);
BricksOn : in std_logic_vector(19 downto 0);
DrawX, DrawY : in std_logic_vector(10 downto 0);
Ball_size : in std_logic_vector(10 downto 0);
Paddle_size : in std_logic_vector(10 downto 0);
-- Brick_size : in std_logic_vector(9 downto 0);
Red : out std_logic_vector(9 downto 0);
Green : out std_logic_vector(9 downto 0);
Blue : out std_logic_vector(9 downto 0));
end component;
-----------------------------------------------------
component Brick is
Port ( clk, Reset, frame_clk : in std_logic;
BallX, BallY, BallS : in std_logic_vector(10 downto 0);
BrickXIn, BrickYIn : in std_logic_vector(10 downto 0);
--BrickX, BrickY: out std_logic_vector(10 downto 0);
brick_hit: out std_logic;
BrickOn: out std_logic);
end component;
-----------------------------------------------------
-----------------------------------------------------
signal Reset_h, vsSig, StartSig, win_statusSig : std_logic;
signal BallXSig, BallYSig, BallSSig, PaddleXSig, PaddleYSig, PaddleSSig : std_logic_vector(10 downto 0);
signal DrawXSig, DrawYSig : std_logic_vector(10 downto 0);
signal statusSig : std_logic_vector(3 downto 0);
signal BricksXsig, BricksYsig : std_logic_vector(219 downto 0);
signal BricksOn, brick_hitSig : std_logic_vector(19 downto 0) ;
signal paddle_loss_statusSig : std_logic_vector(1 downto 0);
signal scoreOutSig : std_logic_vector (7 downto 0);
begin
Reset_h <= Reset; -- The push buttons are active low
StartSig <= Start;
find_win: process(BricksOn)
begin
win_statusSig <= '0';
if (BricksOn = "00000000000000000000") then
win_statusSig <= '1';
end if;
end process;
----------------Brick 0----------------------------------------
BricksXsig(10 downto 0) <= CONV_STD_LOGIC_VECTOR(90, 11);
BricksYsig(10 downto 0) <= CONV_STD_LOGIC_VECTOR(20, 11);
----------------Brick 1----------------------------------------
BricksXsig(21 downto 11) <= CONV_STD_LOGIC_VECTOR(190, 11);
BricksYsig(21 downto 11) <= CONV_STD_LOGIC_VECTOR(20, 11);
----------------Brick 2----------------------------------------
BricksXsig(32 downto 22) <= CONV_STD_LOGIC_VECTOR(290, 11);
BricksYsig(32 downto 22) <= CONV_STD_LOGIC_VECTOR(20, 11);
----------------Brick 3----------------------------------------
BricksXsig(43 downto 33) <= CONV_STD_LOGIC_VECTOR(390, 11);
BricksYsig(43 downto 33) <= CONV_STD_LOGIC_VECTOR(20, 11);
----------------Brick 4----------------------------------------
BricksXsig(54 downto 44) <= CONV_STD_LOGIC_VECTOR(490, 11);
BricksYsig(54 downto 44) <= CONV_STD_LOGIC_VECTOR(20, 11);
----------------Brick 5----------------------------------------
BricksXsig(65 downto 55) <= CONV_STD_LOGIC_VECTOR(90, 11);
BricksYsig(65 downto 55) <= CONV_STD_LOGIC_VECTOR(70, 11);
----------------Brick 6----------------------------------------
BricksXsig(76 downto 66) <= CONV_STD_LOGIC_VECTOR(190, 11);
BricksYsig(76 downto 66) <= CONV_STD_LOGIC_VECTOR(70, 11);
----------------Brick 7----------------------------------------
BricksXsig(87 downto 77) <= CONV_STD_LOGIC_VECTOR(290, 11);
BricksYsig(87 downto 77) <= CONV_STD_LOGIC_VECTOR(70, 11);
----------------Brick 8----------------------------------------
BricksXsig(98 downto 88) <= CONV_STD_LOGIC_VECTOR(390, 11);
BricksYsig(98 downto 88) <= CONV_STD_LOGIC_VECTOR(70, 11);
----------------Brick 9----------------------------------------
BricksXsig(109 downto 99) <= CONV_STD_LOGIC_VECTOR(490, 11);
BricksYsig(109 downto 99) <= CONV_STD_LOGIC_VECTOR(70, 11);
----------------Brick 10---------------------------------------
BricksXsig(120 downto 110) <= CONV_STD_LOGIC_VECTOR(90, 11);
BricksYsig(120 downto 110) <= CONV_STD_LOGIC_VECTOR(120, 11);
----------------Brick 11---------------------------------------
BricksXsig(131 downto 121) <= CONV_STD_LOGIC_VECTOR(190, 11);
BricksYsig(131 downto 121) <= CONV_STD_LOGIC_VECTOR(120, 11);
----------------Brick 12---------------------------------------
BricksXsig(142 downto 132) <= CONV_STD_LOGIC_VECTOR(290, 11);
BricksYsig(142 downto 132) <= CONV_STD_LOGIC_VECTOR(120, 11);
----------------Brick 13---------------------------------------
BricksXsig(153 downto 143) <= CONV_STD_LOGIC_VECTOR(390, 11);
BricksYsig(153 downto 143) <= CONV_STD_LOGIC_VECTOR(120, 11);
----------------Brick 14---------------------------------------
BricksXsig(164 downto 154) <= CONV_STD_LOGIC_VECTOR(490, 11);
BricksYsig(164 downto 154) <= CONV_STD_LOGIC_VECTOR(120, 11);
----------------Brick 15---------------------------------------
BricksXsig(175 downto 165) <= CONV_STD_LOGIC_VECTOR(90, 11);
BricksYsig(175 downto 165) <= CONV_STD_LOGIC_VECTOR(170, 11);
----------------Brick 16---------------------------------------
BricksXsig(186 downto 176) <= CONV_STD_LOGIC_VECTOR(190, 11);
BricksYsig(186 downto 176) <= CONV_STD_LOGIC_VECTOR(170, 11);
----------------Brick 17---------------------------------------
BricksXsig(197 downto 187) <= CONV_STD_LOGIC_VECTOR(290, 11);
BricksYsig(197 downto 187) <= CONV_STD_LOGIC_VECTOR(170, 11);
----------------Brick 18---------------------------------------
BricksXsig(208 downto 198) <= CONV_STD_LOGIC_VECTOR(390, 11);
BricksYsig(208 downto 198) <= CONV_STD_LOGIC_VECTOR(170, 11);
----------------Brick 19---------------------------------------
BricksXsig(219 downto 209) <= CONV_STD_LOGIC_VECTOR(490, 11);
BricksYsig(219 downto 209) <= CONV_STD_LOGIC_VECTOR(170, 11);
----------------End of Bricks----------------------------------
--Brick1Xsig <= CONV_STD_LOGIC_VECTOR(0, 11);
--Brick1Ysig <= CONV_STD_LOGIC_VECTOR(0, 11);
-----------------------------------------------------
game_handler_instance : game_handler
Port map(frame_clk => vsSig,
paddle_loss_statusIn => paddle_loss_statusSig,
brick_hitIn => brick_hitSig,
win_statusIn => win_statusSig,
ResetIn => Reset_h,
ResetScore => ResScore,
game_status => statusSig,
score => scoreOutSig);
-----------------------------------------------------
vgaSync_instance : vga_controller
Port map(clk => clk,
reset => Reset_h,
hs => hs,
vs => vsSig,
pixel_clk => VGA_clk,
blank => blank,
sync => sync,
DrawX => DrawXSig,
DrawY => DrawYSig);
-----------------------------------------------------
ball_instance : ball
Port map(Le => Le,
Ri => Ri,
clk => clk,
paddle_loss_status => paddle_loss_statusSig,
Reset => Reset_h,
frame_clk => vsSig, -- Vertical Sync used as an "ad hoc" 60 Hz clock signal
StartMove => StartSig,
seedIn => Seed,
BallX => BallXSig, -- (This is why we registered it in the vga controller!)
BallY => BallYSig,
BallS => BallSSig,
BricksX => BricksXSig,
BricksY => BricksYSig,
BricksOn => BricksOn,
PaddleX => PaddleXSig,
PaddleY => PaddleYSig,
PaddleS => PaddleSSig);
-----------------------------------------------------
paddle_instance : paddle
Port map(Up => Up, --connecting the signals like magic
Do => Do,
Le => Le,
Ri => Ri,
Reset => Reset_h,
frame_clk => vsSig, -- Vertical Sync used as an "ad hoc" 60 Hz clock signal
PaddleX => PaddleXSig, -- (This is why we registered it in the vga controller!)
PaddleY => PaddleYSig,
PaddleS => PaddleSSig);
-----------------------------------------------------
Color_instance : Color_Mapper
Port Map(game_status => statusSig,
BallX => BallXSig,
BallY => BallYSig,
PaddleX => PaddleXSig,
PaddleY => PaddleYSig,
BricksX => BricksXSig,
BricksY => BricksYSig,
BricksOn => BricksOn,
DrawX => DrawXSig,
DrawY => DrawYSig,
Ball_size => BallSSig,
Paddle_size => PaddleSSig,
Red => Red,
Green => Green,
Blue => Blue);
------------------Start Bricks-----------------------
-----------------------------------------------------
Brick0 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(10 downto 0),
BrickYIn => BricksYSig(10 downto 0),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(0),
BrickOn => BricksOn(0) );
-----------------------------------------------------
Brick1 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(21 downto 11),
BrickYIn => BricksYSig(21 downto 11),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(1),
BrickOn => BricksOn(1) );
-----------------------------------------------------
Brick2 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(32 downto 22),
BrickYIn => BricksYSig(32 downto 22),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(2),
BrickOn => BricksOn(2) );
-----------------------------------------------------
Brick3 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(43 downto 33),
BrickYIn => BricksYSig(43 downto 33),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(3),
BrickOn => BricksOn(3) );
-----------------------------------------------------
Brick4 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(54 downto 44),
BrickYIn => BricksYSig(54 downto 44),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(4),
BrickOn => BricksOn(4) );
-----------------------------------------------------
Brick5 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(65 downto 55),
BrickYIn => BricksYSig(65 downto 55),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(5),
BrickOn => BricksOn(5) );
-----------------------------------------------------
Brick6 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(76 downto 66),
BrickYIn => BricksYSig(76 downto 66),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(6),
BrickOn => BricksOn(6) );
-----------------------------------------------------
Brick7 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(87 downto 77),
BrickYIn => BricksYSig(87 downto 77),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(7),
BrickOn => BricksOn(7) );
-----------------------------------------------------
Brick8 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(98 downto 88),
BrickYIn => BricksYSig(98 downto 88),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(8),
BrickOn => BricksOn(8) );
-----------------------------------------------------
Brick9 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(109 downto 99),
BrickYIn => BricksYSig(109 downto 99),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(9),
BrickOn => BricksOn(9) );
-----------------------------------------------------
Brick10 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(120 downto 110),
BrickYIn => BricksYSig(120 downto 110),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(10),
BrickOn => BricksOn(10) );
-----------------------------------------------------
Brick11 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(131 downto 121),
BrickYIn => BricksYSig(131 downto 121),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(11),
BrickOn => BricksOn(11) );
-----------------------------------------------------
Brick12 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(142 downto 132),
BrickYIn => BricksYSig(142 downto 132),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(12),
BrickOn => BricksOn(12) );
-----------------------------------------------------
Brick13 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(153 downto 143),
BrickYIn => BricksYSig(153 downto 143),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(13),
BrickOn => BricksOn(13) );
-----------------------------------------------------
Brick14 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(164 downto 154),
BrickYIn => BricksYSig(164 downto 154),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(14),
BrickOn => BricksOn(14) );
-----------------------------------------------------
Brick15 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(175 downto 165),
BrickYIn => BricksYSig(175 downto 165),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(15),
BrickOn => BricksOn(15) );
-----------------------------------------------------
Brick16 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(186 downto 176),
BrickYIn => BricksYSig(186 downto 176),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(16),
BrickOn => BricksOn(16) );
-----------------------------------------------------
Brick17 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(197 downto 187),
BrickYIn => BricksYSig(197 downto 187),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(17),
BrickOn => BricksOn(17) );
-----------------------------------------------------
Brick18 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(208 downto 198),
BrickYIn => BricksYSig(208 downto 198),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(18),
BrickOn => BricksOn(18) );
-----------------------------------------------------
Brick19 : Brick
Port Map(
clk => clk,
Reset => Reset_h,
frame_clk => vsSig,
BallX => BallXSig,
BallY => BallYSig,
BallS => BallSSig,
BrickXIn => BricksXSig(219 downto 209),
BrickYIn => BricksYSig(219 downto 209),
--BrickX => BricksXSig(10 downto 0),
--BrickY => BricksYSig(10 downto 0),
brick_hit => brick_hitSig(19),
BrickOn => BricksOn(19) );
-----------------------------------------------------
vs <= vsSig;
game_statusOut <= statusSig;
scoreOutH <= scoreOutSig(7 downto 4);
scoreOutL <= scoreOutSig(3 downto 0);
end Behavioral;