![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vhdl
小天_13033
这个作者很懒,什么都没留下…
展开
-
VHDL二选一选择器代码及其仿真代码
二选一选择器代码library IEEE;use IEEE.STD_LOGIC_1164.ALL;entity test2 isPort ( a,b,sel:in BIT;y:out bit);end test2;architecture Behavioral of test2 issignal m ,n:bit;beginprocess(a,b,sel)m<=a an...原创 2019-03-20 17:40:55 · 9308 阅读 · 2 评论 -
vhdl 一个简单的testbench
library ieee;use ieee.std_logic_1164.all;entity cnt6_tb isend cnt6_tb;architecture rtl of cnt6_tb iscomponent cnt6port(clr,en,clk :in std_logic;q :out std_logic_vector(2 downto 0));end com...转载 2019-03-20 17:42:26 · 2317 阅读 · 0 评论 -
计数器VHDL testbench
library IEEE;use IEEE.STD_LOGIC_1164.ALL;entity test isPort (led:out std_logic;switch:in std_logic);end test;architecture Behavioral of test isbeginprocess(switch)beginif switch=’1’ thenl...转载 2019-03-20 17:43:13 · 1535 阅读 · 0 评论