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

added ClockTime ports #169

Merged
merged 2 commits into from
Aug 16, 2024
Merged

added ClockTime ports #169

merged 2 commits into from
Aug 16, 2024

Conversation

mmishra9
Copy link
Contributor

Added ports: "steps, remainder, divisor" to ClockTime.vhd

@ruck314
Copy link
Contributor

ruck314 commented Aug 16, 2024

@thatweaver The original defaults for these ports where the following:
https://github.com/slaclab/lcls-timing-core/blob/pre-release/LCLS-II/core/rtl/ClockTime.vhd#L29-L32

      -- Defaults to a step duration of 5-5/13 nanoseconds (1300/7 MHz)
      step               : in slv( 4 downto 0) := slv(conv_unsigned( 5,5));
      remainder          : in slv( FRACTION_DEPTH_G-1 downto 0) := slv(conv_unsigned( 5,FRACTION_DEPTH_G));
      divisor            : in slv( FRACTION_DEPTH_G-1 downto 0) := slv(conv_unsigned(13,FRACTION_DEPTH_G));

In this PR, Mudit changed them to this ...

      step      => toSlv(8,5),
      remainder => toSlv(2,5),
      divisor   => toSlv(5,5),

The step, remainder, and divisor are all now different. Is that going to be a problem?

@thatweaver
Copy link
Contributor

thatweaver commented Aug 16, 2024 via email

@mmishra9
Copy link
Contributor Author

I looked at these values here:

U_ClockTime : entity lcls_timing_core.ClockTime
. But it's for a different module, so I probably made a mistake.

I can remove those three ports so that they go to default values if that's correct. Let me know.

@thatweaver
Copy link
Contributor

thatweaver commented Aug 16, 2024 via email

@ruck314 ruck314 merged commit 427c674 into pre-release Aug 16, 2024
3 checks passed
@ruck314 ruck314 deleted the tcore_tokenizerxx branch August 16, 2024 19:49
@ruck314 ruck314 mentioned this pull request Aug 16, 2024
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

Successfully merging this pull request may close these issues.

3 participants