Skip to content

Commit

Permalink
fix cv32e40px fpga (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
davideschiavone authored Oct 5, 2023
1 parent 1e77ff2 commit a64f88e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions core-v-mini-mcu.core
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ filesets:
- hw/fpga/cv32e40p_xilinx_clock_gate.sv: { file_type: systemVerilogSource }
- hw/fpga/cv32e40x_xilinx_clock_gate.sv: { file_type: systemVerilogSource }
- hw/fpga/cve2_xilinx_clock_gate.sv: { file_type: systemVerilogSource }
- hw/fpga/cv32e40px_xilinx_clock_gate.sv: { file_type: systemVerilogSource }
- hw/fpga/pad_cell_input_xilinx.sv: { file_type: systemVerilogSource }
- hw/fpga/pad_cell_output_xilinx.sv: { file_type: systemVerilogSource }
- hw/fpga/pad_cell_inout_xilinx.sv: { file_type: systemVerilogSource }
Expand Down
25 changes: 25 additions & 0 deletions hw/fpga/cv32e40px_xilinx_clock_gate.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2017 ETH Zurich and University of Bologna.
// Copyright and related rights are licensed under the Solderpad Hardware
// License, Version 0.51 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://solderpad.org/licenses/SHL-0.51. Unless required by applicable law
// or agreed to in writing, software, hardware and materials distributed under
// this License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.

module cv32e40px_clock_gate (
input logic clk_i,
input logic en_i,
input logic scan_cg_en_i,
output logic clk_o
);

xilinx_clk_gating clk_gate_i (
.clk_i,
.en_i,
.test_en_i(scan_cg_en_i),
.clk_o
);

endmodule // cv32e40p_clock_gate
2 changes: 1 addition & 1 deletion hw/vendor/esl_epfl_cv32e40px.core
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ filesets:
- esl_epfl_cv32e40px/rtl/cv32e40px_sleep_unit.sv
- esl_epfl_cv32e40px/rtl/cv32e40px_core.sv
- esl_epfl_cv32e40px/rtl/cv32e40px_apu_disp.sv
- esl_epfl_cv32e40px/rtl/cv32e40px_x_disp
- esl_epfl_cv32e40px/rtl/cv32e40px_x_disp.sv
- esl_epfl_cv32e40px/rtl/cv32e40px_fifo.sv
- esl_epfl_cv32e40px/rtl/cv32e40px_fp_wrapper.sv
- esl_epfl_cv32e40px/rtl/cv32e40px_top.sv
Expand Down

0 comments on commit a64f88e

Please sign in to comment.