本设计使用VHDL实现停车场收费功能
具体实现的功能如下图所示:
使用VHDL进行设计实现
每一个功能均已实现,部分代码及仿真截图如下:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use IEEE.math_real.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 leaf cells in this code.
–library UNISIM;
–use UNISIM.VComponents.all;
entity design_a is