using onehot multiplexer to reduce critical path

This commit is contained in:
Blaise Tine
2021-07-08 00:26:59 -07:00
parent dc34c5c5bd
commit 10e9ee124b
11 changed files with 161 additions and 207 deletions

View File

@@ -67,7 +67,6 @@ module VX_onehot_encoder #(
reg [LN-1:0] index_r;
if (REVERSE) begin
always @(*) begin
index_r = 'x;
for (integer i = N-1; i >= 0; --i) begin
@@ -76,7 +75,6 @@ module VX_onehot_encoder #(
end
end
end
end else begin
always @(*) begin
index_r = 'x;