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

[capture] Add trigger source command #303

Merged
merged 2 commits into from
Feb 7, 2024
Merged

Conversation

nasahlpa
Copy link
Member

This PR adds the SCA trigger source command to the capture scripts. Needed to start penetration tests at ASIC as there is no HW trigger available.

@nasahlpa nasahlpa force-pushed the swtrigger branch 2 times, most recently from f2e5e40 to 9c01397 Compare January 29, 2024 10:24
@nasahlpa nasahlpa marked this pull request as ready for review January 29, 2024 11:24
Comment on lines 31 to 32
# TODO: without the delay, the device uJSON command handler program
# does not recognize the commands. Tracked in issue #256.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: We usually use this format for TODO. Makes it easier to search the repository.

TODO(#256): Without the delay, the device uJSON command handler program does not recognize the commands.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good point raised by @vrozic. Please make sure to align the format before merging.

Copy link
Member Author

@nasahlpa nasahlpa Feb 6, 2024

Choose a reason for hiding this comment

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

Hm I followed the recommendation of the OpenTitan C style guide regarding comments. There seems not to be a recommendation for Python though.

But I am following @vrozic advise and change it to TODO(#256) for now and I created an issue (#308) that we can streamline this later on.

Copy link
Contributor

@vrozic vrozic left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks for working on this @nasahlpa

@nasahlpa nasahlpa marked this pull request as draft January 29, 2024 16:54
@nasahlpa nasahlpa marked this pull request as ready for review February 5, 2024 10:37
@nasahlpa
Copy link
Member Author

nasahlpa commented Feb 5, 2024

The uJSON tests are currently failing as this PR needs the changes from #269 and #304.

Copy link
Collaborator

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

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

Looks good module two comments, thanks @nasahlpa !

Comment on lines 31 to 32
# TODO: without the delay, the device uJSON command handler program
# does not recognize the commands. Tracked in issue #256.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good point raised by @vrozic. Please make sure to align the format before merging.

# does not recognize the commands. Tracked in issue #256.
time.sleep(0.01)
self.target.write(json.dumps("TriggerSca").encode("ascii"))
# DisableMasking command.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment seems wrong.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thanks!

@nasahlpa nasahlpa force-pushed the swtrigger branch 7 times, most recently from 80ce457 to fcf0bf7 Compare February 7, 2024 08:13
This PR adds the SCA trigger source command to the capture scripts.
Needed to start penetration tests at ASIC as there is no HW trigger
available.

Signed-off-by: Pascal Nasahl <[email protected]>
This commit updates the binary to the latest uJSON SCA code
that is located in lowRISC/opentitan#21224.

Signed-off-by: Pascal Nasahl <[email protected]>
@nasahlpa nasahlpa merged commit 60804e0 into lowRISC:master Feb 7, 2024
6 of 9 checks passed
@nasahlpa nasahlpa deleted the swtrigger branch February 7, 2024 08:40
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