minor update
This commit is contained in:
@@ -60,8 +60,17 @@ module VX_commit #(
|
|||||||
.count (commit_size)
|
.count (commit_size)
|
||||||
);
|
);
|
||||||
|
|
||||||
assign cmt_to_csr_if.valid = commit_fire;
|
VX_generic_register #(
|
||||||
assign cmt_to_csr_if.commit_size = commit_size;
|
.N(1 + CMTW),
|
||||||
|
.R(1)
|
||||||
|
) pipe_reg (
|
||||||
|
.clk (clk),
|
||||||
|
.reset (reset),
|
||||||
|
.stall (1'b0),
|
||||||
|
.flush (1'b0),
|
||||||
|
.in ({commit_fire, commit_size}),
|
||||||
|
.out ({cmt_to_csr_if.valid, cmt_to_csr_if.commit_size})
|
||||||
|
);
|
||||||
|
|
||||||
// Writeback
|
// Writeback
|
||||||
|
|
||||||
|
|||||||
@@ -194,7 +194,7 @@
|
|||||||
|
|
||||||
// Number of banks
|
// Number of banks
|
||||||
`ifndef DNUM_BANKS
|
`ifndef DNUM_BANKS
|
||||||
`define DNUM_BANKS `MIN(`NUM_THREADS, 4)
|
`define DNUM_BANKS `NUM_THREADS
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
// Core Request Queue Size
|
// Core Request Queue Size
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module VX_countones #(
|
|||||||
input wire [N-1:0] valids,
|
input wire [N-1:0] valids,
|
||||||
output wire [N_BITS-1:0] count
|
output wire [N_BITS-1:0] count
|
||||||
);
|
);
|
||||||
reg [N_BITS-1:0] count_r;
|
/*reg [N_BITS-1:0] count_r;
|
||||||
|
|
||||||
always @(*) begin
|
always @(*) begin
|
||||||
count_r = 0;
|
count_r = 0;
|
||||||
@@ -19,6 +19,8 @@ module VX_countones #(
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
assign count = count_r;
|
assign count = count_r;*/
|
||||||
|
|
||||||
|
assign count = $countones(valids);
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
Reference in New Issue
Block a user