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

How to generate two clocks with different frequencies #326

Open
tuuyii opened this issue Jun 7, 2021 · 3 comments
Open

How to generate two clocks with different frequencies #326

tuuyii opened this issue Jun 7, 2021 · 3 comments

Comments

@tuuyii
Copy link

tuuyii commented Jun 7, 2021

Hello, thanks for your work.
but how to generate two clocks with different frequencies?

@drom drom transferred this issue from wavedrom/wavedrom.github.io Jun 7, 2021
@drom
Copy link
Member

drom commented Jun 7, 2021

You can use period property on the wavelane like this:

{signal: [
  {name: 'clk3', wave: 'p....', period: 3},
  {name: 'clk5', wave: 'p..',   period: 5},
]}

https://wavedrom.com/editor.html?%7Bsignal%3A%20%5B%0A%20%20%7Bname%3A%20%27clk3%27%2C%20wave%3A%20%27p....%27%2C%20period%3A%203%7D%2C%0A%20%20%7Bname%3A%20%27clk5%27%2C%20wave%3A%20%27p..%27%2C%20%20%20period%3A%205%7D%2C%0A%5D%7D

@golovinengineer
Copy link

Could 'period' property be a decimal fraction?

@heartacker
Copy link

Could 'period' property be a decimal fraction?

not now, and i also want this.

@drom drom added this to the v3 milestone Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants