Package builder.resid.resid
Klasse WaveformCalculator
java.lang.Object
builder.resid.resid.WaveformCalculator
Combined waveform calculator for WaveformGenerator.
- Autor:
- Antti Lankila
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungprotected static class -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate static final Map<WaveformCalculator.CombinedWaveformConfig[], short[][]> private static final WaveformCalculator.CombinedWaveformConfig[][] -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected static short[][]buildTable(ChipModel model) Build waveform tables for use by WaveformGenerator.private static shortcalculateCombinedWaveform(WaveformCalculator.CombinedWaveformConfig config, int waveform, int accumulator) Generate bitstate based on emulation of combined waves.
-
Felddetails
-
CACHE
-
config
-
-
Konstruktordetails
-
WaveformCalculator
public WaveformCalculator()
-
-
Methodendetails
-
buildTable
Build waveform tables for use by WaveformGenerator. The method returns 3 tables in an Object[] wrapper: 1. float[11][4096] wftable: the analog values in the waveform table 2. float[12] dac table for values of the nonlinear bits used in waveforms. 3. byte[11][4096] wfdigital: the digital values in the waveform table. The wf* tables are structured as follows: indices 0 .. 6 correspond to SID waveforms of 1 to 7 with pulse width value set to 0x1000 (never triggered). Indices 7 .. 10 correspond to the pulse waveforms with width set to 0x000 (always triggered).- Parameter:
model- Chip model to use- Gibt zurück:
- Table suite
-
calculateCombinedWaveform
private static short calculateCombinedWaveform(WaveformCalculator.CombinedWaveformConfig config, int waveform, int accumulator) Generate bitstate based on emulation of combined waves.- Parameter:
config- theWaveformCalculator.CombinedWaveformConfigto use.waveform- the waveform to emulate, 1 .. 7accumulator- the accumulator value.
-