Skip to content

Support overriding digitiser sample-bits and samples-per-heap in scratch scripts - #1063

Draft
bmerry wants to merge 5 commits into
mainfrom
NGC-1796-sim-correlator-sample-bits
Draft

Support overriding digitiser sample-bits and samples-per-heap in scratch scripts#1063
bmerry wants to merge 5 commits into
mainfrom
NGC-1796-sim-correlator-sample-bits

Conversation

@bmerry

@bmerry bmerry commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Checklist (if not applicable, edit to add (N/A) and mark as done):

  • (n/a) If dependencies are added/removed: update pyproject.toml and .pre-commit-config.yaml.
  • (n/a) If new source files are added: add copyright notices dated with the current year.
  • (n/a) If qualification tests are changed: attach or link to a sample qualification report.
  • (n/a) If design has changed: ensure documentation is up to date.
  • (n/a) If ICD-defined sensors have been added: update fake_servers.py in katsdpcontroller to match.
  • (n/a) If the interface between the product controller and an engine has changed, update the
    VERSION constant for the engine (update the major number if sensors/requests have been
    removed/changed, minor number if only backwards-compatible changes have been done).
    Also, update doc/control.rst with the new version.

Closes NGC-1796.

@bmerry
bmerry requested a review from amishatishpatel June 29, 2026 07:19
@bmerry
bmerry marked this pull request as draft June 29, 2026 07:20
@bmerry

bmerry commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Marking as draft because it will require ska-sa/katsdpcontroller#847 first.

@amishatishpatel amishatishpatel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't spot any outstanding references to DIG_SAMPLE_BITS (that haven't been updated to the new DEFAULT_DIG_SAMPLE_BITS). Same story for DIG_HEAP_SAMPLES.

Should we be expecting a katsdpcontroller PR some time soon?

Comment on lines -20 to +22
--adc-sample-rate ${adc_sample_rate:-7000000000} \
--adc-sample-rate ${adc_sample_rate:-5992000000} \
--sample-bits ${dig_sample_bits:-6} \
--heap-samples ${dig_heap_samples:-8192} \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of interest, and because I never really dabbled in the higher adc_sample_rates

  • What were the possible/usual values tested?
  • I take it the tweaks to the *-hbw.sh scripts imply Band 5B as default.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7 Gsps was I think just 4x S-band (and about the limit of what the current hardware can achieve. 5.992 Gsps is I believe the Band 5B rate.

@bmerry

bmerry commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Should we be expecting a katsdpcontroller PR some time soon?

It's already been reviewed by Eaton: ska-sa/katsdpcontroller#847

bmerry added 5 commits July 23, 2026 17:42
Prefix them with DEFAULT_ to emphasise that these are not the only
possible values. That was already the case, but there is still a lot of
test/qualification/scratch code that assumes these default values.
Use them in the command-line parsers for fgpu and dsim, to ensure that
they have consistent defaults with each other.
This depends on product-configure schema 4.9, which is not yet in
production.
@bmerry
bmerry force-pushed the NGC-1796-sim-correlator-sample-bits branch from c02371d to c5e966b Compare July 23, 2026 15:42
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.

2 participants