-
Notifications
You must be signed in to change notification settings - Fork 0
/
memory_test.vhd
33 lines (28 loc) · 891 Bytes
/
memory_test.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
entity testmemory is
end testmemory;
architecture behavioral of testmemory is
component memory
port (
address : in std_logic_vector (15 downto 0);
databus : inout std_logic_vector (15 downto 0);
clk, ReadMem, WriteMem : in std_logic;
MemDataReady : out std_logic
);
end component;
signal address : std_logic_vector (15 downto 0);
signal clk, ReadMem, WriteMem : std_logic;
signal MemDataReady : std_logic;
signal databus : std_logic_vector (15 downto 0);
begin
myMemory : memory port map (
address => address,
databus => databus,
clk => clk,
ReadMem => ReadMem,
WriteMem => WriteMem,
MemDataReady => MemDataReady
);
end behavioral; -- behavioral