Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16610 Discussions

clock in lpm - ram megafunction

Altera_Forum
Honored Contributor II
1,250 Views

hey all. 

 

i am using the 1-port single clock ram present in LPM megafunctions . simulating the function shows that the clock is positive-edge triggered. i wish to use a negative edge-triggered clock for it. is there a way to set the clock this way? 

 

thanks!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
514 Views

If using Quartus integrated synthesis, simply invert the clock in the RTL or schematic before the connection to the megafunction port. Quartus will move the inverter into the RAM block during compilation. 

 

If you use incremental compilation, the inverter in the source code needs to be in the same design partition with the RAM megafunction to avoid having the inversion done in an LE LUT.
0 Kudos
Altera_Forum
Honored Contributor II
514 Views

thanks Brad!

0 Kudos
Reply