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

bsg_mem_1r1w_one_hot_write_mask_bit/byte #662

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

RicoLi424
Copy link

add write mask bit/byte feature to 1r1w one hot mem

@RicoLi424 RicoLi424 changed the title bsg_mem_1r1w_one_hot_write_mask_bit/byte intial commit bsg_mem_1r1w_one_hot_write_mask_bit/byte Sep 3, 2023

logic [width_p-1:0] data_n;

bsg_encode_one_hot #(.width_p(safe_els_lp)
Copy link
Contributor

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)
);

Copy link
Contributor

Choose a reason for hiding this comment

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

@RicoLi424
Copy link
Author

Used the previously unused reset input port in bsg_mem_1r1w_one_hot and bsg_mem_1r1w_one_hot_mask_write_bit/byte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants