feat: 新增 暫停鈕
This commit is contained in:
parent
f09a089082
commit
d62591899a
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
module FPGA_FINAL(
|
module FPGA_FINAL(
|
||||||
input CLK, reset,
|
input CLK, reset, start,
|
||||||
output reg [0:27] led,
|
output reg [0:27] led,
|
||||||
input left, right,
|
input left, right,
|
||||||
input throw,
|
input throw,
|
||||||
@ -47,6 +47,8 @@ module FPGA_FINAL(
|
|||||||
integer ballTime;
|
integer ballTime;
|
||||||
// 判斷 所有操作
|
// 判斷 所有操作
|
||||||
always @(posedge buttonclk)
|
always @(posedge buttonclk)
|
||||||
|
begin
|
||||||
|
if(start)
|
||||||
begin
|
begin
|
||||||
|
|
||||||
|
|
||||||
@ -212,6 +214,7 @@ module FPGA_FINAL(
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// 顯示用
|
// 顯示用
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user