24进制计数器 - 我的第一个FPGA程序
新到手了一片FPGA,花了两天时间,看了一些书,算是懂了VHDL最基础的一点点。总算是把这份24进制计数器做出来了。现在我分以下几个部分总结:
- 程序代码
- 对于软件操作的总结
- 对于VHDL语言的总结
程序代码
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 14:40:39 09/27/2016
-- Design Name:
-- Module Name: Module01 - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_unsigned.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--use IEEE.NUMERIC_STD.ALL;
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity Module01 is
Port ( cp : in STD_LOGIC;
rst : in STD_LOGIC;
Wela : out STD_LOGIC_VECTOR (7 downto 0);
Dula : out