Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add intermediate signal when making 'token_lookahead'
By assigning token_lookahead directly from the the token replicate there will always be an over assignment on the RHS. The LSB will get assigned to the token_lookahead signal and the unused upper bits will be discarded. This is valid verilog and the desired behaviour, however, many tools will throw a warning because the width of the LHS and RHS do not match. Using an intermediate 'token_wrap' signal allows for only a slice of a signal to be assigned to the token_lookahead, thus removing the width discrepancy and warning.
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 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
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