This commit is contained in:
NoryiE
2025-02-10 06:00:28 +00:00
parent b0a4a6da9c
commit 71a1fce096
2428 changed files with 0 additions and 1005324 deletions

View File

@@ -1,43 +0,0 @@
-- dual_port_RAM_visualTest.vhd
-- created by : Meher Krishna Patel
-- date : 26-Dec-16
-- Functionality:
-- store and retrieve data from dual port RAM
-- ports:
-- Write Enable (we) : SW[16]
-- Address (addr_wr) : SW[15-14]
-- Address (addr_rd) : SW[13-12]
-- din : SW[2:0]
-- dout : LEDR
use ieee.numeric_std.all;library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity dual_port_RAM_visualTest is
generic (
ADDR_WIDTH : integer := 2;
DATA_WIDTH : integer := 3
);
port(
CLOCK_50: in std_logic;
SW : in std_logic_vector(16 downto 0);
LEDR : out std_logic_vector(DATA_WIDTH-1 downto 0)
);
end dual_port_RAM_visualTest;
architecture arch of dual_port_RAM_visualTest is
begin
dual_port_RAM_test: entity work.dual_port_RAM
port map (clk=>CLOCK_50, we=>SW(16),
addr_wr => SW(15 downto 14),
addr_rd => SW(13 downto 12),
din => SW(2 downto 0),
dout =>LEDR);
end arch;
-- From https://vhdlguide.readthedocs.io/en/latest/vhdl/dex.html