Skip to content

Commit

Permalink
Added in cv32e40p_top a clock gating cell for FPU.
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Gouedo <[email protected]>
  • Loading branch information
Pascal Gouedo committed Apr 28, 2023
1 parent 0b1a2ca commit c90bb28
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rtl/cv32e40p_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module cv32e40p_top #(
import cv32e40p_apu_core_pkg::*;

// Core to FPU
logic clk;
logic apu_req;
logic [ APU_NARGS_CPU-1:0][31:0] apu_operands;
logic [ APU_WOP_CPU-1:0] apu_op;
Expand Down Expand Up @@ -143,12 +144,19 @@ module cv32e40p_top #(
generate
if (FPU) begin : fpu_gen
// FPU clock gate
cv32e40p_clock_gate core_clock_gate_i (
.clk_i (clk_i),
.en_i (!core_sleep_o),
.scan_cg_en_i(scan_cg_en_i),
.clk_o (clk)
);

// Instantiate the FPU wrapper
cv32e40p_fp_wrapper #(
.FPU_ADDMUL_LAT(FPU_ADDMUL_LAT),
.FPU_OTHERS_LAT(FPU_OTHERS_LAT)
) fp_wrapper_i (
.clk_i (clk_i),
.clk_i (clk),
.rst_ni (rst_ni),
.apu_req_i (apu_req),
.apu_gnt_o (apu_gnt),
Expand Down

0 comments on commit c90bb28

Please sign in to comment.