Skip to content

API's ClockGenerator::AdvanceByHalfPeriod advancing by a Complete Period? #15

Description

@TheOnlyStenberg

I'm trying to generate Simulation data for a protocol, but it seems that when I initialize clock generator for 768kHz. And loop to generate a clock it shows up as 384kHz in Logic.

In SimulationDataGenerator:
mClockGenerator.Init(768000.0, simulation_sample_rate);

In a loop inside GenerateSimulationData:
mSck->Transition();
SimulationChannels.AdvanceAll(mClockGenerator.AdvanceByHalfPeriod(1.0));
mSck->Transition();
SimulationChannels.AdvanceAll(mClockGenerator.AdvanceByHalfPeriod(1.0));

By the name of the function I would have expected it to advance by only half a period when given 1.0 as argument. Especially when 1.0 is the default value for the argument.

My apologies if this is not the appropriate place to report this kind of issues.

384khz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions