fix simX build
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
`ifndef VX_GENERIC_PRIORITY_ENCODER
|
||||
`define VX_GENERIC_PRIORITY_ENCODER
|
||||
|
||||
`include "VX_define.vh"
|
||||
|
||||
module VX_generic_priority_encoder
|
||||
#(
|
||||
parameter N = 1
|
||||
)
|
||||
(
|
||||
module VX_generic_priority_encoder #(
|
||||
parameter N = 1
|
||||
) (
|
||||
input wire[N-1:0] valids,
|
||||
//output reg[$clog2(N)-1:0] index,
|
||||
output reg[(`LOG2UP(N))-1:0] index,
|
||||
@@ -27,6 +22,5 @@ module VX_generic_priority_encoder
|
||||
end
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
|
||||
`endif
|
||||
|
||||
endmodule
|
||||
@@ -17,4 +17,5 @@ module VX_priority_encoder (
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
endmodule
|
||||
@@ -1,4 +1,5 @@
|
||||
`include "VX_define.vh"
|
||||
|
||||
module VX_priority_encoder_w_mask #(
|
||||
parameter N = 10
|
||||
) (
|
||||
@@ -27,4 +28,5 @@ module VX_priority_encoder_w_mask #(
|
||||
end
|
||||
|
||||
assign mask = found ? (1 << index) : 0;
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user