fix sources.txt, run_ase.sh
This commit is contained in:
@@ -13,9 +13,6 @@ module VX_alu_unit (
|
||||
output reg [31:0] alu_result,
|
||||
output reg alu_stall
|
||||
);
|
||||
localparam DIV_PIPELINE_LEN = 18;
|
||||
localparam MUL_PIPELINE_LEN = 1;
|
||||
|
||||
wire[31:0] div_result_unsigned;
|
||||
wire[31:0] div_result_signed;
|
||||
|
||||
@@ -37,11 +34,11 @@ module VX_alu_unit (
|
||||
`ALU_DIV,
|
||||
`ALU_DIVU,
|
||||
`ALU_REM,
|
||||
`ALU_REMU: inst_delay = DIV_PIPELINE_LEN;
|
||||
`ALU_REMU: inst_delay = `DIV_LATENCY;
|
||||
`ALU_MUL,
|
||||
`ALU_MULH,
|
||||
`ALU_MULHSU,
|
||||
`ALU_MULHU: inst_delay = MUL_PIPELINE_LEN;
|
||||
`ALU_MULHU: inst_delay = `MUL_LATENCY;
|
||||
default: inst_delay = 0;
|
||||
endcase
|
||||
end
|
||||
@@ -91,7 +88,7 @@ module VX_alu_unit (
|
||||
.WIDTHD(32),
|
||||
.NSIGNED(0),
|
||||
.DSIGNED(0),
|
||||
.PIPELINE(DIV_PIPELINE_LEN)
|
||||
.PIPELINE(`DIV_LATENCY)
|
||||
) udiv (
|
||||
.clk(clk),
|
||||
.reset(reset),
|
||||
@@ -106,7 +103,7 @@ module VX_alu_unit (
|
||||
.WIDTHD(32),
|
||||
.NSIGNED(1),
|
||||
.DSIGNED(1),
|
||||
.PIPELINE(DIV_PIPELINE_LEN)
|
||||
.PIPELINE(`DIV_LATENCY)
|
||||
) sdiv (
|
||||
.clk(clk),
|
||||
.reset(reset),
|
||||
@@ -124,7 +121,7 @@ module VX_alu_unit (
|
||||
.WIDTHB(33),
|
||||
.WIDTHP(64),
|
||||
.SIGNED(1),
|
||||
.PIPELINE(MUL_PIPELINE_LEN)
|
||||
.PIPELINE(`MUL_LATENCY)
|
||||
) multiplier (
|
||||
.clk(clk),
|
||||
.reset(reset),
|
||||
|
||||
@@ -72,6 +72,10 @@
|
||||
|
||||
`define CSR_WIDTH 12
|
||||
|
||||
`define DIV_LATENCY 16
|
||||
|
||||
`define MUL_LATENCY 1
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
`define BYTE_EN_NO 3'h7
|
||||
|
||||
@@ -11,7 +11,6 @@ module VX_fair_arbiter #(
|
||||
output wire grant_valid
|
||||
);
|
||||
|
||||
|
||||
if (N == 1) begin
|
||||
|
||||
`UNUSED_VAR (clk)
|
||||
@@ -20,8 +19,7 @@ module VX_fair_arbiter #(
|
||||
assign grant_onehot = requests;
|
||||
assign grant_valid = requests[0];
|
||||
|
||||
end else begin
|
||||
|
||||
end else begin
|
||||
|
||||
reg [N-1:0] requests_use;
|
||||
wire [N-1:0] update_value;
|
||||
@@ -48,7 +46,7 @@ module VX_fair_arbiter #(
|
||||
|
||||
reg [N-1:0] grant_onehot_r;
|
||||
|
||||
VX_priority_encoder # (
|
||||
VX_priority_encoder #(
|
||||
.N(N)
|
||||
) priority_encoder (
|
||||
.data_in (requests_use),
|
||||
@@ -61,7 +59,7 @@ module VX_fair_arbiter #(
|
||||
grant_onehot_r[grant_index] = 1;
|
||||
end
|
||||
assign grant_onehot = grant_onehot_r;
|
||||
assign late_value = ((refill_original ^ requests) & ~refill_original);
|
||||
assign late_value = ((refill_original ^ requests) & ~refill_original);
|
||||
assign update_value = (requests_use & ~grant_onehot_r) | late_value;
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user