Forum Discussion

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

Using memory

Why inferred ram does not have a reset signal ?

thank you.

10 Replies

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

    Your design should take care of initializing the data before using it ;-)

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

    The memory blocks internal to FPGA's do not typically have a clearing function that zeros the memory locations, but rather clear output registers that hold the last value read, or address latching registers for holding addresses, etc.

    Refer to the sevtion fo the particular families data sheet for details on these clearing functions.

    As such, most inferred RAM do not see a need for the reset function.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for your answer about memory initilization.

    Q: How forcing quartus to infer M4k RAM by using Tcl Language?

    Thank you?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Why not using the mega wizard manager ?

    --- Quote End ---

    because all my project design must be wrote in VHDL.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    And ..?

    I'm also coding in VHDL,

    and the megawizard can generate vhdl file !
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes, the megawizard generates a vhdl file. But, in my design project I can not use a generated component because each ligne VHDL wrote must be justified.

    So, a generated component has a supplementary code.

    In my design, I do not like to use the ALTERA labrary, too.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm with the same problem . . . i want to use the chip memory block without using a megafunction because i want portability .

    Anyone knows how to do it ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Turn over 'Inferring Altera Megafunctions from HDL Code' section in quartus handbook and you will find all that you need.