From 4b50a8719e0d9bb6154d82bbd1894ed075eaad09 Mon Sep 17 00:00:00 2001 From: snsd0805 Date: Sun, 10 Jan 2021 06:24:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=AF=E7=A4=BA=E7=A3=9A=E5=A1=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FPGA_FINAL.v | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/FPGA_FINAL.v b/FPGA_FINAL.v index 2e91664..88249b5 100644 --- a/FPGA_FINAL.v +++ b/FPGA_FINAL.v @@ -7,7 +7,8 @@ module FPGA_FINAL( output testLED ); - + reg [7:0]blockFirst = 8'b11111111; + reg [7:0]blockSecond = 8'b11111111; reg [2:0]plat_position; // 板子位置 reg [2:0]ball_position; // 球 位置 @@ -169,7 +170,7 @@ module FPGA_FINAL( horizonPosition = 0; ball_y_position <= ball_y_position-1; end - + // 判斷特殊狀態 end end end @@ -220,6 +221,9 @@ module FPGA_FINAL( end else led[8:15] = 8'b11111111; + + //開始畫磚塊 + led[16:23] = {~blockFirst[row], ~blockSecond[row], 6'b111111}; end endmodule