Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

Simple counter/memory logic- question- Help needed

Altera_Forum
Honored Contributor II
1,655 Views

Hello, 

I am implementing a simple memory RAM in VHDL. 

 

logic: We have a 24 bit input data....need to split into two 12 bits data, and append 4 bits in the MSB side, and fill the memory...... 

 

compile error: ** Fatal: (vsim-3421) Value 1440 is out of range 0 to 1439.# Time: 28820 ns Iteration: 0 Process: /single_ended_tb/UUT/READ_PROCESS File: E:/PROJECT/PROGRAMS/TESTING_SIMULATION/INPUT_LOGIC/Single_Ended/newlogic_rings_April14/single_ended.vhd 

 

attaching the program for your reference. 

 

any help would be appreciated.. 

 

Kind Regards, 

Manoj
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
713 Views

In your simulation, your addresses are going over the limit of the memory array size. I suggest debugging on the waveform. 

As a hint - your check on counter limits is an even number. But count_addr_2 is always odd, and so will never reset (maybe you want to use > rather than = for the comparison).
0 Kudos
Altera_Forum
Honored Contributor II
713 Views

Thank you Tricky!. I fixed it as per your reply, and its working fine now.

0 Kudos
Reply