File tree Expand file tree Collapse file tree 3 files changed +27
-8
lines changed Expand file tree Collapse file tree 3 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 5858# remove tracer (not needed for synthesis)
5959rm -f $LR_SYNTH_OUT_DIR /generated/cve2_tracer.v
6060
61- # remove the FPGA & register -based register file (because we will use the
62- # latch -based one instead)
63- rm -f $LR_SYNTH_OUT_DIR /generated/cve2_register_file_ff .v
61+ # remove the FPGA & latch -based register file (because we will use the
62+ # register -based one instead)
63+ rm -f $LR_SYNTH_OUT_DIR /generated/cve2_register_file_latch .v
6464rm -f $LR_SYNTH_OUT_DIR /generated/cve2_register_file_fpga.v
6565
6666yosys -c ./tcl/yosys_run_synth.tcl | & teelog syn || {
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Copyright lowRISC contributors.
4+ # Licensed under the Apache License, Version 2.0, see LICENSE for details.
5+ # SPDX-License-Identifier: Apache-2.0
6+
7+ if [ $# -eq 1 ]; then
8+ export LR_SYNTH_OUT_DIR=$1
9+ elif [ $# -eq 0 ]; then
10+ export LR_SYNTH_OUT_DIR_PREFIX=" syn_out/cve2"
11+ export LR_SYNTH_OUT_DIR=$( date +" ${LR_SYNTH_OUT_DIR_PREFIX} _%d_%m_%Y_%H_%M_%S" )
12+ else
13+ echo " Usage $0 [synth_out_dir]"
14+ exit 1
15+ fi
16+
17+ export LR_SYNTH_TIMING_RUN=1
18+ export LR_SYNTH_FLATTEN=1
19+
20+ # SETUP CELL LIBRARY PATH
21+ # Uncomment the lines below and set the path to an appropriate .lib file
22+ # export LR_SYNTH_CELL_LIBRARY_PATH=~/src/OpenROAD-flow-scripts/flow/platforms/nangate45/lib/NangateOpenCellLibrary_typical.lib
23+ export LR_SYNTH_CELL_LIBRARY_NAME=nangate
Original file line number Diff line number Diff line change @@ -14,18 +14,14 @@ if { $lr_synth_timing_run } {
1414 write_sdc_out $lr_synth_sdc_file_in $lr_synth_sdc_file_out
1515}
1616
17- yosys " read_verilog -defer -sv ./rtl/prim_clock_gating .v $lr_synth_out_dir /generated/*.v"
17+ yosys " read_verilog -defer -sv ./rtl/cve2_clock_gating .v $lr_synth_out_dir /generated/*.v"
1818
1919if { $lr_synth_cve2_writeback_stage } {
2020 yosys " chparam -set WritebackStage 1 $lr_synth_top_module "
2121}
2222
23- yosys " chparam -set RV32B $lr_synth_cve2_bitmanip $lr_synth_top_module "
24-
2523yosys " chparam -set RV32M $lr_synth_cve2_multiplier $lr_synth_top_module "
2624
27- yosys " chparam -set RegFile $lr_synth_cve2_regfile $lr_synth_top_module "
28-
2925yosys " synth $flatten_opt -top $lr_synth_top_module "
3026yosys " opt -purge"
3127
You can’t perform that action at this time.
0 commit comments