Megadrive/Genesys Controller block for ICE40/ECP5

54 views
Skip to first unread message

beni...@gmail.com

unread,
Apr 14, 2021, 5:49:42 PM4/14/21
to FPGAwars: explorando el lado libre
Hello everyone,

Here You have the Megadrive Controller for our OpenFPGAs

The Megadrive Pinouts are here

megadrive_joy_pinouts.jpg
P6 and P9 are first and second buttons respectively
For P5 is better to use 3.3V 
P7 is the joy_select signal
Capture.PNG
Please, change the value of N regarding your CLK board

Same that the case of the SNS controller if your LEDs have positive or negative logic you have to change the line 72

     assign joy1_o =  joy1_s; // for Positive Logic

      assign joy1_o = ~joy1_s;  // for Negative Logic

Thanks and regards

Fernando Mosquera
Megadrive_test.ice

Jo mo

unread,
Apr 14, 2021, 9:36:32 PM4/14/21
to FPGAwars: explorando el lado libre

Great I have a Megadrive stored somewere in the garage. Hopefully the controller is not to far :-).

This stuff will make a quick "button box" solution for our dev boards (even no soldering required :-) )

Thanks Fernando

jor...@gmail.com

unread,
Apr 15, 2021, 6:01:34 PM4/15/21
to FPGAwars: explorando el lado libre
Después de las modificaciones que me has pasado Fernando y reparado el jumper roto, al final conseguí hacerlo funcionar con la Alhambra 2.
Paso el código. 

Saludos,
Jordi
El dia dimecres, 14 d’abril de 2021 a les 23:49:42 UTC+2, beni...@gmail.com va escriure:
Megadrive_test_Alhambra2.ice

beni...@gmail.com

unread,
Apr 15, 2021, 7:49:48 PM4/15/21
to FPGAwars: explorando el lado libre
Muchas gracias Jordi,

Al final es mejor sacar los pull-ups del modulo del Controlador del Mando. La razon es que el modulo es comun a todas las placas ICE40 y ECP5 pero los pull-ups difieren
Es decir el modulo de pull-up del ICE40 es diferente al mismo modulo de la placa ECP5, al llevar diferente FPGA las llamadas a las primitivas son distintas. Por ello yo he sacado diferentes versiones
Aparentemente se ven igual pero si os meteis en el pull-up vereis que el codigo es completamente distinto

Saludos
Megadrive_ICE40_test.ice

beni...@gmail.com

unread,
Apr 15, 2021, 7:50:24 PM4/15/21
to FPGAwars: explorando el lado libre
se me olvido meter el del ECP5. Aqui esta

Saludos
Megadrive_ECP5_test.ice

beni...@gmail.com

unread,
Apr 15, 2021, 7:55:14 PM4/15/21
to FPGAwars: explorando el lado libre
Por tanto Obijuan, para la placa EPC5 hay modulos que cambian. De hecho cualquier modulo que use primitivas de la ICE40 es probable que no funcione para la ECP5 al usar diferentes primitivas


Espero que con esto podamos mejorar el Icestudio y hacerlo mas compatible con las placas ECP5, ahora que estan en auge y es la siguiente evolucion a las OpenFPGAs

Un saludo
Fernando


Steinþór Hafsteinsson

unread,
Apr 16, 2021, 8:35:58 AM4/16/21
to fpga-wars-explora...@googlegroups.com
Hello Fernando

I just want to thank you for your great interest in this project and how active you are in helping us with the Colorlight boards and these projects and designs you are posting. 

It is great to see some activity here and you are a great source of inspiration.

I hope you will continue being active and am looking forward to seeing what you will accomplish in the future.

Again thank you very much.
_____________________

Með bestu kveðju / Best regards 

Steinþór G. Hafsteinsson / Steinthor ...
Sími: 893-7656


--
Has recibido este mensaje porque estás suscrito al grupo "FPGAwars: explorando el lado libre" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a fpga-wars-explorando-el...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/fpga-wars-explorando-el-lado-libre/a96944c7-531e-4073-8b66-8b976fd03d67n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages