implement steps
display a red point on the screen
let the redpoint move, left, right, down
design standard shape of the block
let the block could be rotated
design the game logicality
others
- VGA_SYNC_N control if show, N means 0 is activated
view code
VGA_SYNC_N <= '0'; -- display
VGA_BLANK_N <= '1'; -- do not dispaly
2. these assignments could work by now, which just include VGA show info
点击查看代码
# -------------------------------------------------------------------------- #
#
# Copyright (C) 1991-2013 Altera Corporation
# Your use of Altera Corporation's design tools, logic functions
# and other software and tools, and its AMPP partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Altera Program License
# Subscription Agreement, Altera MegaCore Function License
# Agreement, or other applicable license agreement, including,
# without limitation, that your use is for the sole purpose of
# programming logic devices manufactured by Altera and sold by
# Altera or its authorized distributors. Please refer to the
# applicable agreement for further details.
#
# -------------------------------------------------------------------------- #
#
# Quartus II 64-Bit
# Version 13.1.0 Build 162 10/23/2013 SJ Web Edition
# Date created = 15:28:23 December 06, 2023
#
# -------------------------------------------------------------------------- #
#
# Notes:
#
# 1) The default values for assignments are stored in the file:
# BouncingBall_assignment_defaults.qdf
# If this file doesn't exist, see file:
# assignment_defaults.qdf
#
# 2) Altera recommends that you do not modify this file. This
# file is updated automatically by the Quartus II software
# and any changes you make may be lost or overwritten.
#
# -------------------------------------------------------------------------- #
set_global_assignment -name FAMILY "Cyclone IV E"
set_global_assignment -name DEVICE EP4CE115F29C7
set_global_assignment -name TOP_LEVEL_ENTITY BouncingBall
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 13.1
set_global_assignment -name PROJECT_CREATION_TIME_DATE "15:28:23 DECEMBER 06, 2023"
set_global_assignment -name LAST_QUARTUS_VERSION 13.1
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
set_global_assignment -name DEVICE_FILTER_PACKAGE FBGA
set_global_assignment -name DEVICE_FILTER_PIN_COUNT 780
set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 7
set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1
set_global_assignment -name NOMINAL_CORE_SUPPLY_VOLTAGE 1.2V
set_global_assignment -name EDA_SIMULATION_TOOL "ModelSim-Altera (VHDL)"
set_global_assignment -name EDA_OUTPUT_DATA_FORMAT VHDL -section_id eda_simulation
set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
set_global_assignment -name VHDL_FILE vga_controller.vhd
set_global_assignment -name VHDL_FILE Tail.vhd
set_global_assignment -name VHDL_FILE keyCode.vhd
set_global_assignment -name VHDL_FILE keyboard.vhd
set_global_assignment -name VHDL_FILE Header.vhd
set_global_assignment -name VHDL_FILE Food.vhd
set_global_assignment -name VHDL_FILE Color_Mapper.vhd
set_global_assignment -name VHDL_FILE BouncingBall.vhd
set_global_assignment -name VHDL_FILE Ball.vhd
set_location_assignment PIN_D12 -to Blue[7]
set_location_assignment PIN_F11 -to blank
set_location_assignment PIN_B10 -to Blue[0]
set_location_assignment PIN_A10 -to Blue[1]
set_location_assignment PIN_D11 -to Blue[6]
set_location_assignment PIN_C12 -to Blue[5]
set_location_assignment PIN_A11 -to Blue[4]
set_location_assignment PIN_B11 -to Blue[3]
set_location_assignment PIN_C11 -to Blue[2]
set_location_assignment PIN_Y2 -to Clk
set_location_assignment PIN_G8 -to Green[0]
set_location_assignment PIN_G11 -to Green[1]
set_location_assignment PIN_F8 -to Green[2]
set_location_assignment PIN_H12 -to Green[3]
set_location_assignment PIN_C8 -to Green[4]
set_location_assignment PIN_B8 -to Green[5]
set_location_assignment PIN_F10 -to Green[6]
set_location_assignment PIN_C9 -to Green[7]
set_location_assignment PIN_E12 -to Red[0]
set_location_assignment PIN_E11 -to Red[1]
set_location_assignment PIN_D10 -to Red[2]
set_location_assignment PIN_F12 -to Red[3]
set_location_assignment PIN_G10 -to Red[4]
set_location_assignment PIN_J12 -to Red[5]
set_location_assignment PIN_H8 -to Red[6]
set_location_assignment PIN_H10 -to Red[7]
set_location_assignment PIN_A12 -to VGA_clk
set_location_assignment PIN_G13 -to hs
set_location_assignment PIN_C10 -to sync
set_location_assignment PIN_C13 -to vs
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top