Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Onchip Memory Simulation

Hi,

I'm simulating an onchip memory access through Avalon. When my master logic sends a read request, the readdatavalid (I'm doing a pipelined read) is set properly by the controller. The problem is, the readdata line is all X! It never goes through a transition ever! I'm simulating with Modelsim-Altera free version. Thanks for any help,

Just to have said, modelsim does give me some warnings about some unconnected ports for the onchip module, but I've created the design by SOPC, so I guess it shouldn't matter, right?! :)

Kaveh

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi,

    I'm simulating an onchip memory access through Avalon. When my master logic sends a read request, the readdatavalid (I'm doing a pipelined read) is set properly by the controller. The problem is, the readdata line is all X! It never goes through a transition ever! I'm simulating with Modelsim-Altera free version. Thanks for any help,

    Just to have said, modelsim does give me some warnings about some unconnected ports for the onchip module, but I've created the design by SOPC, so I guess it shouldn't matter, right?! :)

    Kaveh

    --- Quote End ---

    Do you mean that you have an on-chip memory created in the SOPC Builder? Or you have your own design of on-chip memory that is outside the SOPC system and you are communicating with the Avalon bus through an "interface" component? Please also write how are you simulating your system. I believe you have embedded your test-bench in the Simulation file generated by the the SOPC system.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm using the on-chip memory (SRAMs). Anyways, I remember I got it to work by setting a parameter in the verilog file that SOPC creates. Unfortunately, I don't remember exactly which parameter it was that I had to change. I think the "init_file" parameter was set incorrectly by SOPC that I had to set it myself.

    Thanks,

    Kaveh
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I would have a look at the unconnected signals if I were you. Why are they unconnected? If you've done the design in SOPC Builder then you shouldn't have anything unconnected.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What do you expect to come out of the RAM? Is the RAM completely initialized with some meaningful content? Otherwise the X would be correct.