Commit Graph

12 Commits

Author SHA1 Message Date
Paul Mathieu
67634ca178 dsp: refactor test 2021-04-24 08:57:55 -07:00
Paul Mathieu
c12c28fb44 dsp: add bootloader
It works!!
2021-04-17 23:13:20 -07:00
Paul Mathieu
a864ca3d7e dsp: allow fetching instructions from SRAM 2021-04-17 23:11:04 -07:00
Paul Mathieu
a4005ade77 dsp: small refactor 2021-03-20 21:27:36 -07:00
Paul Mathieu
f7b7118278 dsp: non-functional code. needs funcall refactor in cc 2021-03-18 20:14:00 -07:00
Paul Mathieu
b70cdd13c4 Add partial support for 8-bit loads
We're big-endian.
when we have this in memory:

00 01 02 03

And we need the first byte, we load the first 16-bit word:

0x0001

The first byte is then in the upper part of the word, and requires
a right shift by 8.
So any load into an 8-bit typed container needs to shift stuff.

So far, stores from/to the stack are exempted, they always load/store
full 16-bit words.

And a few othe rminor things. Like string null terminators.
And escaped characters in character literals.

Can you believe it's spelled 'literal', with a single t?
Me neither.
2021-03-18 08:35:23 -07:00
Paul Mathieu
5612f23181 dsp: flash these LEDs 2021-03-14 18:09:05 -07:00
Paul Mathieu
38542f4431 dsp: add make target for bitstream 2021-03-14 18:08:53 -07:00
Paul Mathieu
6ea04f1f6b dsp: some UART logging \o/ 2021-03-14 12:18:01 -07:00
Paul Mathieu
54c69dd962 dsp: add missing alu.vhdl in makefile 2021-03-14 12:14:55 -07:00
Paul Mathieu
24c6831813 Small fixes for synthesis 2021-03-13 21:02:54 -08:00
Paul Mathieu
14dba00fd0 Add dsp
With:
- LED control
- UART
- PDM out
- square wave generator (DMA to PDM out (was it really necessary?))
- sample program that plays a square wave from UART values
2021-03-13 15:50:25 -08:00