mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
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:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user