Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheOnlyStenberg opened this issue Sep 14, 2018 · 0 comments

Comments

@TheOnlyStenberg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant