minor update

This commit is contained in:
Blaise Tine
2020-12-03 16:21:20 -08:00
parent fb60d0af87
commit 478d971389
3 changed files with 16 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ module VX_countones #(
input wire [N-1:0] valids,
output wire [N_BITS-1:0] count
);
reg [N_BITS-1:0] count_r;
/*reg [N_BITS-1:0] count_r;
always @(*) begin
count_r = 0;
@@ -19,6 +19,8 @@ module VX_countones #(
end
end
assign count = count_r;
assign count = count_r;*/
assign count = $countones(valids);
endmodule