Project

General

Profile

Activity

From 10/27/2019 to 11/25/2019

11/17/2019

FO 09:10 PM Feature #84: Add SID
Attaching some of the octave files from investigating this for reference + the wave files + other useful bits I found online. foft
FO 09:07 PM Feature #84: Add SID
Did some research over the weekend. Generating these isn't a terribly trivial problem!
I tried for some time to generate in matlab. I came up with a pretty good solution for wave 3: triangle + sawtooth. Actually its sawtooth + 2 sawto...
foft

11/12/2019

FO 10:19 PM Feature #84: Add SID
It sounds good to me, but not sure what it is meant to sound like!! foft
FO 10:19 PM Feature #84: Add SID
Also wondering if the clk frequency is important (not enable), I see some state table increment on every clock, which is reset on enable foft
FO 10:18 PM Feature #84: Add SID
Wondering about some kind of bit map of unpopulated locations (reducing locations) or a 2nd lookup layer (reducing bits)
foft
FO 10:04 PM Feature #84: Add SID
I loaded the tables in to octave to take a look.
Observations...
* Not a simple curve
* Lots of zeros, >80% in some cases
* Quite a lot of dupes
dupes:
>> log2(numel(unique(ps)))
ans = 6.5699
> ...
ans = 4.7549
>> log2(n...
foft
FO 10:02 PM Feature #84: Add SID
Actually the issue with fitting in v2 is block ram, not ALMs. Though its always good to save ALMs!
The sid tables take 14KB each. So for stereo sid its 28KB. Anyway I do not even have 14KB to spare on v2...
foft

11/09/2019

FO 10:05 AM Feature #84: Add SID
Also got this potential USB sharing, that'd save 750 ALMS. Each request/reply is host initiated, so no reason can't share one. Keepalives would need to go to both ports. Not sure how complex that'd be! Perhaps I plumb the output to both,... foft
FO 10:03 AM Feature #84: Add SID
600 alms each, will use mono sid I guess. Or make it a generic and enable on the larger boards? foft
FO 10:00 AM Feature #84: Add SID
Logic utilization (in ALMs) 9,808 / 9,430 ( 104 % ) foft
FO 09:56 AM Feature #84: Add SID
Have a dual 8250 working, though it doesn't fit in the smaller boards. Investigating why, memory or logic... foft
FO 09:56 AM Feature #84 (New): Add SID
Agreed to try adding a SID to the pokeymax.
Eclaire is a good test bed for this, so starting out with that
foft
FO 10:00 AM Bug #69: Some TVs confused by hdmi audio
Hias had some clever approaches, capturing the digital audio out from the tv etc foft
FO 09:59 AM Bug #69: Some TVs confused by hdmi audio
I dug into this a bit with Hias. It turned out the issue for him was noise from the dac, so distinct issue. Though I had changed the HDMI component somewhat to be I think closer to spec. Would be curious if it helped on these screens. foft
FO 09:58 AM Feature #32: option to connect the original ATARI XL keyboard to ExclairXL
Panos kindly sent me the boards he designed. I put together the bom on mouser and digikey. will order some parts and try to build later this year.
There might also be another secret project (shhhhh)
foft
FO 09:55 AM Feature #51: Debug port
Now I have the saleae I figure I can stream this more reliably to the PC. Will have a go at this soon... Perhaps I write a protocol decoder plugin? foft
FO 09:54 AM Feature #82: Setting for mono pokey
With adding sid should probably allow that to be on/off too.
pokey 1/2
sid 0/1
2 bits?
foft
FO 09:44 AM Bug #83: Many USB hubs do not work
Just did a bit more testing. Two hubs, two keyboards and a joystick. Fiddled with unplugging/re-plugging etc and all seeming good now. foft

11/08/2019

FO 10:58 PM Bug #83 (Closed): Many USB hubs do not work
foft
FO 10:57 PM Bug #83 (Resolved): Many USB hubs do not work
foft
FO 10:54 PM Bug #83: Many USB hubs do not work
Got it, I needed to set the line control earlier on. It was set to 'NORMAL' after the reset and this leads to the SET_ADDRESS being ignored. foft

11/07/2019

FO 10:53 PM Bug #83: Many USB hubs do not work
This setup is so much better for debugging than on the Eclaire. I have gdb on linux to debug the binary, I can printf to the terminal and I can see the packets with the saleae. If I can't fix it now then... Still sure it'll take me some ... foft
FO 10:49 PM Bug #83: Many USB hubs do not work
The hub is detected as connected, then it tries to set the address and fails.
So, the keyboards I'm using are low speed, while the hub I'm using is full speed.
On the low speed I see SE0, followed by JKJKJK (i.e. sync)
On the high s...
foft
FO 10:07 PM Bug #83: Many USB hubs do not work
OK, circuit build and wired up. I can type on the sockit.
Now to get some debugging in place and try the hub.
foft

11/06/2019

FO 08:57 PM Bug #83: Many USB hubs do not work
Wired up the USB to gpio, added another pll for the pll clock.
Now will get the software to poll usb and see if I get anything on the gpio port. If I do a few resistors and a little plumbing and I can connect a USB keyboard to try.
foft

11/05/2019

FO 10:12 PM Bug #83: Many USB hubs do not work
Updating the avalon arm regs, to the latest zpu config regs. Which has USB...
Will also add another avalon slave which puts all the bus transactions into a fifo, so I can debug those from the arm too.
foft

11/04/2019

FO 10:38 PM Bug #83: Many USB hubs do not work
Managed to get the core flashing ok (was bad rbf generation).
Also installed gcc and the binaries are running ok.
Can read/write the os rom + ram via dma.
Have sync on vga, but it doesn't boot.
So... this is probably enough to now ...
foft

11/03/2019

FO 10:21 PM Bug #83: Many USB hubs do not work
Well I can flash it and get sync on vga, but no dice. I remembered I needed to run the firmware binary. I flashed the FPGA (after disabling gpio kernel module and tool) ok from linux. Then I tried to start SOCKIT.ELF, which promptly cras... foft
FO 08:24 PM Bug #83: Many USB hubs do not work
Managed to get the SOCkit board up and running and set up linux.
Now going to build/flash the existing 800 core as a hello world...
foft
FO 09:25 AM Bug #83: Many USB hubs do not work
I've known about this for a long time but have never really looked into it, since its a pain and hubs are not that important (we have two ports and real controller ports).
I had an idea on how to debug, I could use the SOCkit which r...
foft
FO 09:23 AM Bug #83 (Closed): Many USB hubs do not work
Only the hub I did initial testing with works. Investigate why. foft

11/01/2019

FO 10:34 PM Feature #82 (New): Setting for mono pokey
Hias asked me for a mono pokey mode, where its output to both speakers.
foft
FO 10:17 PM Bug #75 (Closed): USB keyboard stops functioning after idle period
foft
FO 10:17 PM Bug #75 (Resolved): USB keyboard stops functioning after idle period
Added a timer elapsed function that handles the overflow. This makes the max delay 35 mins, but I think that is ok... This is usually used for ms or us delays. foft
FO 09:32 PM Bug #75: USB keyboard stops functioning after idle period
((2^32)/1e6)/60 = 71...
So trivial fix. I clearly don't need the Saleae to debug this one, but that isn't so bad. I can use it for the real-time bus capture to debug the whole system and also for the usb hub debugging.
foft
FO 09:30 PM Bug #75: USB keyboard stops functioning after idle period
Trying it with two keyboards. So far an hour and working.
Though I have a hunch that it'll stop working in 10 minutes!!
The code does this:
if(timer_get_msec() > host->poll) {
host->poll = timer_get_msec()+1;
I reckon it...
foft

10/31/2019

FO 10:47 PM Bug #75 (In Progress): USB keyboard stops functioning after idle period
foft
FO 10:36 PM Bug #75: USB keyboard stops functioning after idle period
OK, finally froze. I could still enter the menu with fire and it worked. So ZPU is alive, just USB is dead.
Ordered the Saleae analyzer to see if the USB debugging is any good too:-)
foft
FO 10:22 PM Bug #75: USB keyboard stops functioning after idle period
I left it for an hour, then typed and it worked... sigh. foft
FO 09:25 PM Bug #75: USB keyboard stops functioning after idle period
While I mull that I tried building a core that can enter the menu with fire. So I can see if it is indeed USB that crashes and not the whole ZPU. foft
FO 09:24 PM Bug #75: USB keyboard stops functioning after idle period
Tempted to get a Saleae logic USB3 analyzer to capture at a higher rate and they also have USB decoding. Its several hundred though, so not sure. Clearly its worth it if I'd use it a log but not sure I will. They very kindly have electro... foft
FO 09:23 PM Bug #75: USB keyboard stops functioning after idle period
So, decided to take it seriously.
My picoscope claimes to decode USB, tried that and found it pretty poor.
So I tried to capture the full data stream to PC and decode it with sigrok. I got some valid packets once or twice, but it seems...
foft
FO 09:21 PM Bug #75: USB keyboard stops functioning after idle period
Jurgen has this with both his keyboards after about 20 minutes.
I also thought I saw it when running the Eclaire for a prolonged period at a show earlier this year.
Anyway did some investigation...
I left my keyboard for an hour and i...
foft
 

Also available in: Atom