Author Topic: Memory simulation in lattice  (Read 2768 times)

0 Members and 1 Guest are viewing this topic.

Offline Ola_AkerbladhTopic starter

  • Newbie
  • Posts: 4
  • Country: se
Memory simulation in lattice
« on: May 24, 2016, 06:04:56 pm »
Howdy!

I'm trying to simulate a True DP ram memory generated in Lattice Diamond 3.6 with Active-HDL.

I think I've done everything correct but the databus shows "????" in the simulation. My assumption is that I need some simulation model of the memory, but I migh have forgotten something else.

I've attached a screenshot of the write and read sequence.

I'm grateful for any type of help
 

Offline andre_teprom

  • Regular Contributor
  • *
  • Posts: 72
  • Country: br
    • Aluis-Rcastro
Re: Memory simulation in lattice
« Reply #1 on: May 24, 2016, 07:34:26 pm »
Can you add the HDL code here ?
"Part of the world that you live in, You are the part that you're giving" ( Renaissance )
 

Offline Ola_AkerbladhTopic starter

  • Newbie
  • Posts: 4
  • Country: se
Re: Memory simulation in lattice
« Reply #2 on: May 25, 2016, 06:10:25 am »
Sure,

I was not allowed to attach the .vhd files so here is a zip file of the source and the test bench.

Thank you for your time!
 

Offline Ola_AkerbladhTopic starter

  • Newbie
  • Posts: 4
  • Country: se
Re: Memory simulation in lattice
« Reply #3 on: May 25, 2016, 06:12:38 am »
Just to clarify, the memory is a
- true dual port ram for a lattice Machxo2
- 16 bit word length
- 512 words
- set in write through mode
 

Offline Ola_AkerbladhTopic starter

  • Newbie
  • Posts: 4
  • Country: se
Re: Memory simulation in lattice
« Reply #4 on: May 25, 2016, 07:23:24 am »
Fixed it!

I was beeing stupid as usual!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->