Forum Discussion

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

altsyncram in simple dual-port mode

Hi, the altsyncram in simple dual-port mode does not seem to work correctly. It appears to have some internal pipelining on the data and address inputs relative to the wren and even each other.

Also, the modelsim model seems to work slightly differently than the actual FPGA-based instantiation (shown with Signal Tap).

Any insights into the use of this megafunction in the Stratix III?

Thank you for any help!

Shayle

12 Replies

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

    Hi Shayle,

    --- Quote Start ---

    I have determined that the altsyncram function is working correctly and that problems I had with it were really more of trying to deal with my perceived belief that Modelsim/Quartus netlist extraction wasn't working correctly.

    --- Quote End ---

    I'm glad you have it working.

    I would discourage using whatever technique that resulted in a testbench that uses Tcl to force signals onto the design. If you are serious about HDL coding, then you need to learn how to code for both synthesis and simulation using VHDL and/or Verilog/SystemVerilog.

    I know, its a lot to come to grips with when you are starting out. But when you have some time, make the effort to learn how to use Modelsim. It will pay off pretty quickly when designs 'just work' in hardware, given that you have them working in the simulator. Its a lot easier to see all the signals in Modelsim than it is to tap them with SignalTap, but then it is nice to see the SignalTap waveforms matching simulation too.

    Cheers,

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

    Hi Dave,

    Yes, good advice. All very true.

    I will do that later, when I get back to Verilog. For now, I am using AHDL and letting Quartus generate the netlist.

    When I get a chance, I will follow your recommendation.

    Thanks,

    Shayle