-
Notifications
You must be signed in to change notification settings - Fork 263
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
avalon_slave.vhd: added support for byte enable #872
Conversation
The only thing I miss is a test for byte enable in tb_avalon_slave.vhd. Currently all bits are always set:
|
I have added a test and hope this is satisfactory. |
-- Burst write in progress | ||
if pending_writes > 1 then | ||
addr := addr + byteenable'length; | ||
pending_writes := pending_writes -1; | ||
write_word(avalon_slave.p_memory, addr, writedata); | ||
for idx in 0 to word_i'length/8-1 loop |
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.
If you move line 60-64 after the if statement you get rid of the code duplication in lines 69-73
Thanks for the added test. Linting failed with a trailing whitespace on line 139 in tb_avalon_slave.vhd. One final request is to remove the code duplication in avalon_slave.vhd. I made a new inline comment on that. |
Thanks for the tips. I have processed both points |
Is there anything left for me to do for a merge? The failed test seems to be due to problems with the tools... |
No, I think that was a glitch. Couldn't see the re-run button so I simply merged it. We'll see what happens. |
It worked. Thanks for your contribution. |
Hello,
first of all thank you for the great and helpful work.
I have extended the avalon_slave.vhd to include the byte enable when writing the data.
With best regards,
fst-21