FINALLY make the UDB-based sampler work... although without rollover, yet.

Sadly I seem to also have broken the sequencer.
This commit is contained in:
David Given
2019-02-27 23:00:47 +01:00
parent 556afd220b
commit 4b0c7b095b
7 changed files with 15 additions and 3 deletions

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -250,7 +250,7 @@ static void init_capture_dma(void)
CyDmaTdSetConfiguration(td[i], BUFFER_SIZE, td[nexti],
CY_DMA_TD_INC_DST_ADR | CAPTURE_DMA__TD_TERMOUT_EN);
CyDmaTdSetAddress(td[i], LO16((uint32)SAMPLER_DATAPATH_F0_PTR), LO16((uint32)&dma_buffer[i]));
CyDmaTdSetAddress(td[i], LO16((uint32)&SAMPLER_DATAPATH_F0_REG), LO16((uint32)&dma_buffer[i]));
}
}
@@ -370,7 +370,7 @@ static void init_replay_dma(void)
CyDmaTdSetConfiguration(td[i], BUFFER_SIZE, td[nexti],
CY_DMA_TD_INC_SRC_ADR | REPLAY_DMA__TD_TERMOUT_EN);
CyDmaTdSetAddress(td[i], LO16((uint32)&dma_buffer[i]), LO16((uint32)REPLAY_DATA_Control_PTR));
CyDmaTdSetAddress(td[i], LO16((uint32)&dma_buffer[i]), LO16((uint32)&REPLAY_DATA_Control));
}
}

View File

@@ -26,7 +26,7 @@ enum
SIDE_HIGHDENSITY = 0<<1,
FRAME_SIZE = 64,
TICK_FREQUENCY = 24000000,
TICK_FREQUENCY = 12000000,
TICKS_PER_US = TICK_FREQUENCY / 1000000,
TICKS_PER_MS = TICK_FREQUENCY / 1000,

View File

@@ -20,6 +20,10 @@ static SettableFlag dumpBitstreamFlag(
{ "--dump-bitstream", "-B" },
"Dump aligned bitstream.");
static SettableFlag dumpBytecodesFlag(
{ "--dump-bytecodes", "-H" },
"Dump the raw FluxEngine bytecodes.");
static IntFlag fluxmapResolutionFlag(
{ "--fluxmap-resolution" },
"Resolution of flux visualisation (nanoseconds). 0 to autoscale",
@@ -122,6 +126,14 @@ int main(int argc, const char* argv[])
std::cout << std::endl;
}
if (dumpBytecodesFlag)
{
std::cout << "Raw FluxEngine bytecodes follow:" << std::endl;
const auto& bytes = fluxmap->rawBytes();
hexdump(std::cout, bytes);
}
return 0;
}