CPLD Fun Board (Arduino STM32 + Altera CPLD)

If you made your own board, post here, unless you built a Maple or Maple mini clone etc
User avatar
Just4Fun
Posts: 76
Joined: Tue Jan 05, 2016 9:48 pm
Location: Dark side of the Moon
Contact:

CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Just4Fun » Thu Oct 19, 2017 1:33 pm

Hi all,
as "promised" here it is the CPLD Fun Board! :D

It can be seen as two boards into one: a STM32F103 based Arduino (Maple Mini compatible) and an Altera MAX II CPLD (EPM240T100 or EPM570T100) dev board to start playing with VHDL/Verilog, or just to try to use a CPLD with the Quartus II schematic editor.

Image

The STM32 is used as "stimulus" generator for the CPLD:

Image

Here it is a short demo video:



The cost should be about 5/6$ plus the PCB (I haven't done the precise BOM calculation yet...), buying the components "around". The "pluggable" LCD module and the optional stand-alone 50MHz oscillator aren't included in the cost count.

Image

Image

All the details including the schematic and the PCB Gerber files can be found here.

There is also an article on this board on Hackaday here.

BTW: I've just realized that gmail was putting all the notification from this site into the spam folder... :evil:

Cheers.
Last edited by Just4Fun on Sat Nov 18, 2017 9:20 am, edited 1 time in total.

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by ChrisMicro » Thu Oct 19, 2017 3:08 pm

Your board looks quite nice. :D
Probably you should have added a Arduino standard pin out that people could plug in some shields.

User avatar
Just4Fun
Posts: 76
Joined: Tue Jan 05, 2016 9:48 pm
Location: Dark side of the Moon
Contact:

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Just4Fun » Thu Oct 19, 2017 9:48 pm

Thanks!
About the Arduino standard pinout... hmmm... not sure if having it in this thing it would be useful... hmmm...

User avatar
Rick Kimball
Posts: 1058
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Rick Kimball » Fri Oct 20, 2017 1:31 am

Looks great! Do you have example VHDL code that interfaces the CPLD and the stm32?
-rick

User avatar
Just4Fun
Posts: 76
Joined: Tue Jan 05, 2016 9:48 pm
Location: Dark side of the Moon
Contact:

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Just4Fun » Fri Oct 20, 2017 10:21 am

Thanks!
Not for now, but next days/weeks I want add some basic VHDL examples here with some examples using the Quartus II schematic editor, using the HW on the board.

But at first I must add how to configure the Quartus II IDE at best for the board...

PS: please don't consider me a VHDL expert... :lol:

Then I'll start playing with the next thing... the "FPGA Fun Board"... :D

User avatar
Pito
Posts: 1628
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Pito » Fri Oct 20, 2017 12:12 pm

Nice clean design! Great!
The only possible risk with your design is the smaller cpld is small, and the larger is expensive..

An "SPI" or "I2C" module will most probably not fit into the smaller one, but the simplest interface to the stm32 could be done by serial shift in/out.

For example 32bit may cost you 32 LUTs for in_shiftreg and 32 LUTs for the in_latch. For reading you may need another 32 LUTs for the out_latch and 32 LUTs for out_shiftreg. Instead of the out_shiftreg you may use 32:1 mux with 5 address pins to read out the out_latch. That may save you 32 FFs (the cell is 4bit LUT + 1 FF), as the quartus may reuse the existing out_latch LUTs.. Or, you may use 5bit counter to address the 32bit mux (+5 FFs) thus you save some io pins..
Pukao Hats Cleaning Services Ltd.

User avatar
Just4Fun
Posts: 76
Joined: Tue Jan 05, 2016 9:48 pm
Location: Dark side of the Moon
Contact:

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Just4Fun » Fri Oct 20, 2017 7:00 pm

Thanks Pito!

About the EMP570... I found it at about 3.5$ (it's on the way...)... anyway you are right... it is a bit pricey considering that an entry level FPGA can be found at about 5$ (but you must add the eeprom and "some" regulators too...)

User avatar
Pito
Posts: 1628
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Pito » Fri Oct 20, 2017 7:35 pm

Mouser lists the EPM570T100 from 14.13 Euro to 31.20 Euro excl. VAT single quantity.. :?
Pukao Hats Cleaning Services Ltd.

User avatar
Just4Fun
Posts: 76
Joined: Tue Jan 05, 2016 9:48 pm
Location: Dark side of the Moon
Contact:

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Just4Fun » Fri Oct 20, 2017 7:44 pm

3.26$ here including shipment... :lol:

User avatar
Rick Kimball
Posts: 1058
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: CPLD Fun Board (Arduino STM32 + Altera CPLD)

Post by Rick Kimball » Fri Oct 20, 2017 7:57 pm

Regarding examples, I had noticed this Altera Application note:

"AN 265: Using Altera MAX Series as Microcontroller I/O Expanders"
https://www.altera.com/documentation/sa ... 05644.html

I was selfishly hoping you had already written the mcu code for the STM32 : )
-rick

Post Reply