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

Autumn cleaning: layouts #501

Merged
merged 16 commits into from
Nov 14, 2023
Merged

Autumn cleaning: layouts #501

merged 16 commits into from
Nov 14, 2023

Conversation

tilk
Copy link
Member

@tilk tilk commented Nov 2, 2023

This PR refactors the layouts.py file to increase readability and consistency. It introduces fields classes, which store field definitions (together with their names). The fields are then used in the layout definition classes. I was able to factor out most of the field definitions.

Edit: factored out some local fields, as we discussed during the meeting. I also made some additional changes to improve consistency and make the names state more clearly what they represent.

@tilk tilk added the refactor Doesn't change functionality, but makes stuff nicer label Nov 2, 2023
@tilk tilk requested review from piotro888 and makz00 November 13, 2023 11:32
Copy link
Contributor

@kindlermikolaj kindlermikolaj left a comment

Choose a reason for hiding this comment

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

Except for the typo (which wasn't introduced in this PR, but would be nice to correct), everything looks OK.

yield Settle()
self.assertEqual((yield self.m.rs.data[1].rs_data.rp_s2), 0)
self.assertEqual((yield self.m.rs.data[1].rs_data.s2_val), value_sp2)
self.assertEqual((yield self.m.rs.data[1].rec_ready), 1)

# Insert new insturction to entries 0 and 1, check if update of multiple tags works
tag = 4
# Insert new insturction to entries 0 and 1, check if update of multiple registers works
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: insturction

@tilk tilk merged commit 8d94029 into master Nov 14, 2023
6 checks passed
@tilk tilk deleted the tilk/layout-refactor-and-doc branch November 14, 2023 08:28
github-actions bot pushed a commit that referenced this pull request Nov 14, 2023
@tilk tilk mentioned this pull request Nov 18, 2023
tilk added a commit to kuznia-rdzeni/transactron that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Doesn't change functionality, but makes stuff nicer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants