-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aes/rtl] Replace long ternary expressions
This commit replaces long ternary expressions by a combination of `if/else` and `unique case` statements.
- Loading branch information
Showing
1 changed file
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68e3ea5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do prefer the ternary style here, it reads much better to me. (I believe you reverted to that after you updated the coding style guide?)
68e3ea5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Chris,
thanks for your message. No I did not revert back to the ternary style even though I updated the style guide. There are three reasons why I didn't:
AES192Enable
. Factoring that it we can reduce complexity without fully relying on the synthesizer to detect that those cases won't be used.But I am open for discussion. We might want to reconsider once we know how to handle the default cases/don't cares. I suggest to see how the ternaries would look like then and then take the decision.
68e3ea5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.