文件名称:practica1
-
所属分类:
- 标签属性:
- 上传时间:2016-09-17
-
文件大小:515byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
tester.vhd
library IEEE
use IEEE.STD_LOGIC_1164.all
use IEEE.STD_LOGIC_ARITH.all
use IEEE.STD_LOGIC_UNSIGNED.all
LIBRARY lpm
USE lpm.lpm_components.ALL
entity practica1 is
port (
RESET : in std_logic
clk : in std_logic
ena_mem : in std_logic
sel_m : in std_logic
q : out std_logic_vector (5 downto 0))
end practica1
architecture operation of practica1 is
signal address_2 : std_logic_vector(5 downto 0)
begin
process(clk, ena_mem, RESET, sel_m)
begin
if (RESET = 0 ) then
address_2 <= (others => 0 )
elsif rising_edge(clk) then
if ena_mem = 1 and sel_m = 1 then
address_2 <= address_2 + 1
q <= address_2
end if
end if
end process
end operation
- tester.vhd
library IEEE
use IEEE.STD_LOGIC_1164.all
use IEEE.STD_LOGIC_ARITH.all
use IEEE.STD_LOGIC_UNSIGNED.all
LIBRARY lpm
USE lpm.lpm_components.ALL
entity practica1 is
port (
RESET : in std_logic
clk : in std_logic
ena_mem : in std_logic
sel_m : in std_logic
q : out std_logic_vector (5 downto 0))
end practica1
architecture operation of practica1 is
signal address_2 : std_logic_vector(5 downto 0)
begin
process(clk, ena_mem, RESET, sel_m)
begin
if (RESET = 0 ) then
address_2 <= (others => 0 )
elsif rising_edge(clk) then
if ena_mem = 1 and sel_m = 1 then
address_2 <= address_2 + 1
q <= address_2
end if
end if
end process
end operation
library IEEE
use IEEE.STD_LOGIC_1164.all
use IEEE.STD_LOGIC_ARITH.all
use IEEE.STD_LOGIC_UNSIGNED.all
LIBRARY lpm
USE lpm.lpm_components.ALL
entity practica1 is
port (
RESET : in std_logic
clk : in std_logic
ena_mem : in std_logic
sel_m : in std_logic
q : out std_logic_vector (5 downto 0))
end practica1
architecture operation of practica1 is
signal address_2 : std_logic_vector(5 downto 0)
begin
process(clk, ena_mem, RESET, sel_m)
begin
if (RESET = 0 ) then
address_2 <= (others => 0 )
elsif rising_edge(clk) then
if ena_mem = 1 and sel_m = 1 then
address_2 <= address_2 + 1
q <= address_2
end if
end if
end process
end operation
- tester.vhd
library IEEE
use IEEE.STD_LOGIC_1164.all
use IEEE.STD_LOGIC_ARITH.all
use IEEE.STD_LOGIC_UNSIGNED.all
LIBRARY lpm
USE lpm.lpm_components.ALL
entity practica1 is
port (
RESET : in std_logic
clk : in std_logic
ena_mem : in std_logic
sel_m : in std_logic
q : out std_logic_vector (5 downto 0))
end practica1
architecture operation of practica1 is
signal address_2 : std_logic_vector(5 downto 0)
begin
process(clk, ena_mem, RESET, sel_m)
begin
if (RESET = 0 ) then
address_2 <= (others => 0 )
elsif rising_edge(clk) then
if ena_mem = 1 and sel_m = 1 then
address_2 <= address_2 + 1
q <= address_2
end if
end if
end process
end operation
(系统自动生成,下载前可以参看下载内容)
下载文件列表
practica1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.