+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 1
    Points: 114, Level: 1

    Join Date
    Aug 2017
    Posts
    1
    Helped
    0 / 0
    Points
    114
    Level
    1

    Cannot Read Data in 1-Port RAM IP Core

    Hi all.
    I am using a 1-port RAM created using Altera Quarus 16 Lite(IP Catalog). It has width of 16 bits and depth of 64 words. I store in data from a computing register in it and want to read it after some time as I will use this data as input for another module. The data transmission is fine but as I make write_enable '0' and read_enable '1', I receive only first and last data bytes(and middle 1-62 data is lost). But If I make write_enable '1' and read_enable '1' its working fine with a delay of 1 cycle. I do not understand if I am really saving data in RAM or not. Here is behavioral code.Here is the link https://stackoverflow.com/questions/...rt-ram-ip-core to the original question as I cannot post the code and problem in here as it exceeds the allowed character length.
    Thanks in advance.
    Last edited by FvM; 10th August 2017 at 16:43. Reason: Moved to FPGA section

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 4
    Points: 6,329, Level: 18

    Join Date
    Apr 2016
    Posts
    1,342
    Helped
    232 / 232
    Points
    6,329
    Level
    18

    Re: Cannot Read Data in 1-Port RAM IP Core

    First, this is in the wrong section of the forum. Second, your code is reading from address 0 at all times as pointed out in the stackoverflow thread.
    Really, I am not Sam.



    •   AltAdvertisment

        
       

  3. #3
    Super Moderator
    Points: 29,150, Level: 41
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    6,721
    Helped
    1604 / 1604
    Points
    29,150
    Level
    41

    Re: Cannot Read Data in 1-Port RAM IP Core

    You use en as both a write enable and as a clock enable. Using rst1 as a control signal to reset the address is a poor design choice.

    Next time post the code on edaboard. Use code or syntax (preferred) tags. They are applied by placing the following tags around your code. Note remove all spaces (spaces added to keep the tags from taking effect).
    [ code ]
    -- your code goes here
    [/ code ]
    or
    [ syntax=vhdl ]
    -- your code goes here
    [/ syntax ]



--[[ ]]--