Forum Discussion

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

Ram instantiation problem in post transtlation

hi,

my code instantiates 16 ROMS of 256 X 8 length each. but in post translate step, i observe in modelsim output that only 4 such ROMS are instantiated... wat may be the reason for such behaviour?

thanks,

sumanth

options

http://forums.xilinx.com/i/p.gif

6 Replies

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

    Most likely, the ROM is never read in the code, so it's removed in synthesis. You can check details in Quartus compilation reports.

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

    well..... all the ROMs are read.... but in the report its giving me equivalent rom and all but one is being removed. behavioural simulation is all right. but other simulations are giving wrong results.

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

    To expand on FvM comment...

    Is there an output from your design that depends on the read from all ROMs.

    If there is no logic output that depends on the read data from a ROM then the ROM will be deleted in synthesis.

    The ROMS may be read by a testbench but does the result affect an output pin?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ya.... the next module to which the module in question is connected depends solely on the trimmed module.......

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

    Do the ROMs contain the same data and are driven by the same address?

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

    they contain the same data, but are driven by different addresses.....