Forum Discussion
MAX10 10M04 - Not enough logic elements to use the ADC block?
Hi - I'm new to FPGA programming. I'm using the MAX10 10M04SAE144I7G on a board I made. I've gotten as far as programming it to blink LEDs and read pushbuttons now I'm trying to read an analog signal through an ADC pin.
From Intel's online tutorials to setup the ADC I used Quartus Platform Designer and created a block symbol file with the following components, modular ADC core Intel FPGA IP, ALTPLL Intel FPGA IP and JTAG to Avalon Master Bridge. When I go back to Quartus, load in the block symbol file and compile it says "Can't fit design in device". The total logic elements used says 7,432 when the 10M04 only has 4,032 logic elements available.
Is there a way to reduce the amount of logic elements that the ADC block uses?
What's the most simple way to read 1 analog input that uses the least amount of logic elements? Any simple vhdl code examples would be very helpful.
Thank you
Hi,
Try to set the bdf file adc4.bdf to other name.
Thanks,
Regards,
Sheng
9 Replies
- FvM
Super Contributor
The basic ADC block needs about 480 LE, less than 1/8 of 10M04 capacity. It's apparently not the ADC IP as such but other stuff that's consuming the logic resources in your design. - ShengN_altera
Super Contributor
Hi,
May I know which design example tutorials file you're following?
Thanks,
Regards,
Sheng
- James44
New Contributor
- ShengN_altera
Super Contributor
Hi,
The high LE consumptions is because of enabling the Debug Path in Modular ADC core. May check the tutorial video link provided which had been used about 4640 LEs far exceeded the limit of 4,032 LEs.
If disabling the Debug Path, the LE consumptions will be reduced to about 1k+
Thanks,
Regards,
Sheng
- James44
New Contributor
Ok thanks. I just regenerated a new .bdf file without the debug path but now I'm having troubles compiling because of these messages:
Error (12181): Top-level entity "adc4" is ambiguousError (12180): Instance could be entity "adc4" in file adc4/synthesis/adc4.vhd compiled in library adc4Error (12180): Instance could be entity "adc4" in file adc4.bdf compiled in library workError (12153): Can't elaborate top-level user hierarchy
What file is supposed to be set to the Top- level entity?
Thanks
- ShengN_altera
Super Contributor
Hi,
Try to set the bdf file adc4.bdf to other name.
Thanks,
Regards,
Sheng
- James44
New Contributor
Thank you so much @ShengN_Intel
Both of those solutions fixed the problem. The .bdf file looks like it has to be a different name than the .qip file.
Also disabling the debug path and compiling now only uses 1,102 logic elements.
Thank you
- givememessage
Occasional Contributor
10M04SAE144I7G $18, contact: [email protected]