Integrated Shared Memory

This commit is contained in:
felsabbagh3
2019-10-22 05:03:47 -04:00
parent 1bfafca896
commit b7af8c3f34
23 changed files with 2493 additions and 2101 deletions

View File

@@ -0,0 +1,21 @@
`include "../VX_define.v"
module VX_set_bit (
input wire[1:0] index,
output reg[`NT_M1:0] mask
);
integer some_index;
always @(*) begin
for (some_index = 0; some_index <= `NT_M1; some_index = some_index + 1) begin
if (some_index[1:0] == index) begin
assign mask[some_index] = 0;
end
else begin
assign mask[some_index] = 1;
end
end
end
endmodule