Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > SID noise generator testing
2016-08-13 11:56
chatGPZ

Registered: Dec 2001
Posts: 11386
SID noise generator testing

yay!

one thing that'd be really nice to have in the VICE testprograms repo for regression testing would be one (or more :)) programs that check for various properties of the noise generator LFSR. now i tried a few things, and always run into one annoying problem - the damn thing doesnt seem to like being "reset" in any sort of way. which makes comparing with reference data kindof hard.

so my question to the SID wizard is - can you share some ideas please? whatever wizardry may reset the damn thing into a state so that after it it can be sampled and compared to some reference reliably would do the trick.
2016-08-13 12:20
JackAsser

Registered: Jun 2002
Posts: 2014
Doesn't the combined waveforms with noise make the LFSR shift in zeroes? (I'm not the wizard you're looking for)
2016-08-13 12:23
Oswald

Registered: Apr 2002
Posts: 5094
wait until a pattern occurs, then consider it reset ? :P I guess it might take a LONG time :) no wizard either
2016-08-13 12:24
chatGPZ

Registered: Dec 2001
Posts: 11386
please, no vague guessing, i've done that myself already :)
2016-08-13 12:38
JackAsser

Registered: Jun 2002
Posts: 2014
I was referring to: http://www.dekadence64.org/sidwav.txt
2016-08-13 19:05
Jammer

Registered: Nov 2002
Posts: 1335
I based 2nd sid detection on noise generator in register copies and vice surprised me unpleasantly (on the other hand, funniest thing is that disabled vice sound was identified as no 2nd sid as well).
2016-08-13 19:19
chatGPZ

Registered: Dec 2001
Posts: 11386
noise in resid seems to have various problems - hence the need for some test programs :)
2016-08-13 21:09
Claus_2015

Registered: Oct 2012
Posts: 53
Chiming into the vague guessing: is it an option to simply wait for a specific sequence of 3 bytes or so? I would assume that there must be some sequences that are unique in the 23 Bit LFSR period. If you find them, you know where you are. If you did not find them after 2^23 steps, the noise generator is obviously wrong.
2016-08-13 23:12
ChristopherJam

Registered: Aug 2004
Posts: 1409
This thread from some folk reverse engineering various bits of SID behaviour from die shots looks pertinent?

http://forum.6502.org/viewtopic.php?f=8&t=4150&start=0

They move on to other parts of the SID before coming to any kind of definitive conclusion about how the LFSR is reset, or even how combining waveforms infects the state.
2016-08-14 09:26
chatGPZ

Registered: Dec 2001
Posts: 11386
AAAAAAAARRRRRGG GNGNGNGNG
2016-08-14 10:42
Mixer

Registered: Apr 2008
Posts: 452
Considering what sort of tests are possible on c-64.

We can only put a value to some voice 3 register, wait, read something from env3 or osc3.

I tried noise mapping to certain osc values by setting a frequency, then using SounDemons combiwaveform reset, and then waiting for 2 rasterlines for certain OSC3 value to appear. If it did not occur, then change frequency. Obviously the purpose was to get a map for 126 cycle delay.

The resulting map looked different on different c-64 units, so, no universal map that way. However some values did not change between units. There may be something there worth studying.

A better way to study noise might be to do the same but then just wait until a value appears and record times when it does. A sequence of those occurrences could be used to determine where in the "noise" one is. If noise is chaotic then that obviously wont work. Based on what I've understood from the linked texts, there should be at least some short sequences that remain constant as Claus_2015 suggested.
 
... 9 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Airwolf/F4CG
The MeatBall
MWR/Visdom
Unlock/Padua/Albion
Case/Padua
Walt/Bonzai
iceout/Avatar/HF
Mike
DJ Gruby/TRiAD
Zorch
cadaver/covertbitops
Didi/Laxity
Guests online: 140
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.061 sec.