A DE2-115 Propeller demo board project - now programmable with the Propplug
pik33
Posts: 2,366
Edit - 2014.08.20: Version 0.02 is ready. Now, as I have a PropPlug, this is PropPlug programmable.
There are 3 files uploaded:
- a Quartus project
- a Propeller program (wav and sid player). This has to be compiled by BST
- binary files: pof and sof to program the DE2-115 and bin file to program the Propeller
Please test if this works.
The Propeller works @ 130 MHz.
Let it start in its own topic.
What I have now is:
- a DE2-115
- a modified Propeller code working up to 140 MHz, with dirb, outb and inb enabled as independent ports, which can be programmed via DE2-115 RS232 port. After I receive a propplug (thanks again) I will rewrite this to make the system programmable via Propplug too.
- vga output working, SD card working (at <120 MHz), PS2 input working. My Propplay 0.16 starts, displays the picture on the monitor, connects to the SD card and I think it can play if only I can connect P10,P11 to the amplifier.
- some - self made or reworked from Terasic sources - modules intended to work with nios2/qsys in different stage of code completion:
-- vga frame buffer, 800x600x24 using SRAM. Slow. Used this as a presentation machine at the university
-- vga text mode frame buffer, 1440x900, using Atari ST 8x16 font. A pasm code (Nostalgia VGA driver) was used as the source for rewritting in verilog.
-- sdhc (yes, sdhc only) controller which can init the card and read/write a sector into the buffer. It is sdhc only because it hasn't a code which detects older sd cards and address them in byte adressing mode. I haven't any card <4GB to test it.
-- sound chip controller
-- keyboard controller
-- sdram driver
- some Terasic code which can be easily adopted:
-- mouse controller - needs an Y-type PS2 cable
-- IRDA controller
What I want to have:
- a DE2-115 Propeller demo board, configurable with SWx, so we can (1) use a demoboard compatible programs with it (2) after switching some SW use extended possibilities of DE2-115 Propeller to have more fun.
What I am working now at is:
- to make a sound chip controller to work with the Propeller, so I can replace a sound output driver with this and hear the sound - done
What I want to do when I can hear the sound:
- connect a verilog sdhc controller to the Propeller to allow it run @140 MHz
- make a DE2-115 Propeller self bootable. Possible solutions are:
--- add an eeprom connected to GPIO
--- write an eeprom simulator which can use DE2-115 flash memory or will simply boot from something preloaded into fpga
--- modify the boot code so the Propeller will load its code from flash/sd card/something else
I don't know at this time which solution will be better.
The first complete project I want to put here will be a version with working sound and runnable Propplay so it can play SIDs and WAVs from SD.
There are 3 files uploaded:
- a Quartus project
- a Propeller program (wav and sid player). This has to be compiled by BST
- binary files: pof and sof to program the DE2-115 and bin file to program the Propeller
Please test if this works.
The Propeller works @ 130 MHz.
Let it start in its own topic.
What I have now is:
- a DE2-115
- a modified Propeller code working up to 140 MHz, with dirb, outb and inb enabled as independent ports, which can be programmed via DE2-115 RS232 port. After I receive a propplug (thanks again) I will rewrite this to make the system programmable via Propplug too.
- vga output working, SD card working (at <120 MHz), PS2 input working. My Propplay 0.16 starts, displays the picture on the monitor, connects to the SD card and I think it can play if only I can connect P10,P11 to the amplifier.
- some - self made or reworked from Terasic sources - modules intended to work with nios2/qsys in different stage of code completion:
-- vga frame buffer, 800x600x24 using SRAM. Slow. Used this as a presentation machine at the university
-- vga text mode frame buffer, 1440x900, using Atari ST 8x16 font. A pasm code (Nostalgia VGA driver) was used as the source for rewritting in verilog.
-- sdhc (yes, sdhc only) controller which can init the card and read/write a sector into the buffer. It is sdhc only because it hasn't a code which detects older sd cards and address them in byte adressing mode. I haven't any card <4GB to test it.
-- sound chip controller
-- keyboard controller
-- sdram driver
- some Terasic code which can be easily adopted:
-- mouse controller - needs an Y-type PS2 cable
-- IRDA controller
What I want to have:
- a DE2-115 Propeller demo board, configurable with SWx, so we can (1) use a demoboard compatible programs with it (2) after switching some SW use extended possibilities of DE2-115 Propeller to have more fun.
What I am working now at is:
- to make a sound chip controller to work with the Propeller, so I can replace a sound output driver with this and hear the sound - done
What I want to do when I can hear the sound:
- connect a verilog sdhc controller to the Propeller to allow it run @140 MHz
- make a DE2-115 Propeller self bootable. Possible solutions are:
--- add an eeprom connected to GPIO
--- write an eeprom simulator which can use DE2-115 flash memory or will simply boot from something preloaded into fpga
--- modify the boot code so the Propeller will load its code from flash/sd card/something else
I don't know at this time which solution will be better.
The first complete project I want to put here will be a version with working sound and runnable Propplay so it can play SIDs and WAVs from SD.
Comments
http://forums.parallax.com/showthread.php/140767-A-new-topic-for-vga-(not-only)-sid-player?p=1113690&viewfull=1#post1113690
This player contains a sidcog as an object and plays sids and wavs. It is made for the Propeller demo board. The keyboard, sd and vga is working now with a de2-115. All what was left to run it fully is to write a new sound driver and replace my existing ncowav with this Then we will have a sid/wav player running on de2-115. The sound hardware is working now, it only needs a procedure in pasm, spin is simply too slow to feed the samples @ 44100 Hz
If you want to try this player with a real Propeller demo board, compile it with bst or remove a demo method from the vga driver, or it doesn't fit in 32k.
Edit: seems to be better without this filter...
What I published yesterday was one of earlyr version of the project. It cannot run with attached player. Maybe it cannot run at all.
I will find and upload the proper quartus project as soon as I return home.
Changes:
- programmable via proplug instead rs232. The propplug has to be attached at the same pins as in the original Propeller DE2--115 design.
- the Propeller run @ 130 MHz
- the player now plays all files from the directory without any assistance
- patched some bugs in the player
I attached a bin archive with precompiled files.
I hope there was proper and working version uploaded (i will test this now). Please try if this works. The files are attached to the first post.