-
Notifications
You must be signed in to change notification settings - Fork 99
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
bsg_mem_1r1w_one_hot_write_mask_bit/byte #662
base: master
Are you sure you want to change the base?
bsg_mem_1r1w_one_hot_write_mask_bit/byte #662
Conversation
|
||
logic [width_p-1:0] data_n; | ||
|
||
bsg_encode_one_hot #(.width_p(safe_els_lp) |
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.
don't need the encoder here, the enable signal in the mem_array for loop will handle the selection. We can just nest the write mask loop in the mem_array loop
(.i(w_mask_i) | ||
,.o(w_mask_expanded_lo) | ||
); | ||
|
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.
Preferred to use this strategy of replicating non-masked rams: https://github.com/bespoke-silicon-group/basejump_stl/blob/master/bsg_mem/bsg_mem_1r1w_sync_mask_write_byte_synth.v
71c9b7a
to
8ce5dd6
Compare
Used the previously unused reset input port in bsg_mem_1r1w_one_hot and bsg_mem_1r1w_one_hot_mask_write_bit/byte |
add write mask bit/byte feature to 1r1w one hot mem