Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
yup! now that i've made my data and address only 8bit and the counter ranging from 0 to 255, i have no errors, but when i run it it is getting stuck in line 37 (mem(conv_integer(addr1))<=data1;)
line 37 is my write statement, why do yo think its not getting any further than that?
ok, this code is what i've written
entity wriread is
Port ( clk : in STD_LOGIC;
en1,en2 : in STD_LOGIC;
we1,we2 : in STD_LOGIC_VECTOR (0 downto 0);
data1,data2 : in STD_LOGIC_VECTOR (31 downto 0);
addr1,addr2 : in STD_LOGIC_VECTOR (15 downto...
basically i want a dual port ram write/read code with address counters and the above states(initial,input,read,write states)
can you please provide the code for it.?
ok i have this code with states is it correct?
entity bram is
port(clk:in std_logic;
en1,en2:in std_logic;
we1,we2:in std_logic_vector(o downto o);
data:in std_logic_vector(31 downto 0);
addr:in std_logic_vector(15 downto 0);
dataouta,dataoutb:out...
ok i do understand the counter but my question is how do i use the counter in the code that i've mentioned before??
do i just add the count statement before the read/write statement?
i am trying to get a pure simulation model along with the address sequence,as you mentioned earlier i can do that by using state machine,but i dont know how.
am sorry i am new to this, well right now the code that i am using is as follows
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity true_dual_port_ram is
port (clk : in std_logic;
we : in std_logic;
en : in std_logic;
addr1 : in...
hi tnx
but keeping the states aside a simple read/write code how do i write it with address counters?
say this is my dual port ram code
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity true_dual_port_ram is
port (clk : in std_logic;
we : in...
Re: VHDL Dual port Ram
the above code is fine, but what if i have to write many data ex.data which is (7 downto 0) into address which is(3 downto 0)?
then what do i do?
can someone please guide me to write a write/read code for dual port memory in vhdl, i want the code to contain reset state, input state, write state and read state.and also i would want to include counters for address.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.