read_verilog -sv /eda/processor_ci/rtl/RV32IC-CPU.sv
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Adder.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/CSRRegFile.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/ClkInverter.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/InterruptAddressGenerator.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Interrupt_Detector.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/PIC.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/RISCV.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/RISCV_TOP.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/RegSrcUnit.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/TMRGenerator.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/decompression.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/memAddressSelectUnit.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/ALU/ALU.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/ALU/AdderSub.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/ALU/Full_Adder.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/ALU/RippleAdder.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Control/ALUControl.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Control/BranchUnit.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Control/ControlUnit.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Global/values.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Memory/Memory.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Other Units/ClkDiv.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Other Units/ForwardUnit.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Other Units/ImmGen.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Others/Decoder5_32.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Others/Mux2_1.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Others/Mux4_1.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Others/SSDDriver.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Others/ShiftLeft1.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Others/SignExtend.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Registers/FlipFlop.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Registers/RegFile.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Registers/RegWLoad.v
read_verilog /var/jenkins_home/workspace/RV32IC-CPU/RV32IC-CPU/RTL/Registers/regfileModel.v
read_verilog -sv /eda/processor-ci-controller/modules/uart.sv
read_verilog /eda/processor-ci-controller/modules/UART/rtl/uart_rx.v
read_verilog /eda/processor-ci-controller/modules/UART/rtl/uart_tx.v

#read_verilog -sv /eda/processor-ci-controller/modules/spi.sv;
#read_verilog -sv /eda/processor-ci-controller/modules/SPI-Slave/rtl/spi_slave.sv;

read_verilog -sv /eda/processor_ci/internal/ahblite_to_wishbone.sv
read_verilog -sv /eda/processor_ci/internal/axi4_to_wishbone.sv
read_verilog -sv /eda/processor_ci/internal/axi4lite_to_wishbone.sv
read_verilog -sv /eda/processor-ci-controller/rtl/fifo.sv
read_verilog -sv /eda/processor-ci-controller/rtl/reset.sv
read_verilog -sv /eda/processor-ci-controller/rtl/clk_divider.sv
read_verilog -sv /eda/processor-ci-controller/rtl/memory.sv
read_verilog -sv /eda/processor-ci-controller/rtl/interpreter.sv
read_verilog -sv /eda/processor-ci-controller/rtl/controller.sv
read_verilog -sv /eda/processor-ci-controller/rtl/timer.sv
read_verilog -sv /eda/processor_ci/internal/fpga_top.sv

set_param general.maxThreads 16

read_xdc "/eda/processor_ci/constraints/digilent_arty_a7_100t.xdc"
set_property PROCESSING_ORDER EARLY [get_files /eda/processor_ci/constraints/digilent_arty_a7_100t.xdc]

# synth
synth_design -top "fpga_top" -part "xc7a100tcsg324-1"

# place and route
opt_design
place_design

report_utilization -hierarchical -file digilent_arty_a7_utilization_hierarchical_place.rpt
report_utilization               -file digilent_arty_a7_utilization_place.rpt
report_io                        -file digilent_arty_a7_io.rpt
report_control_sets -verbose     -file digilent_arty_a7_control_sets.rpt
report_clock_utilization         -file digilent_arty_a7_clock_utilization.rpt


route_design

report_timing_summary -no_header -no_detailed_paths
report_route_status                            -file digilent_arty_a7_route_status.rpt
report_drc                                     -file digilent_arty_a7_drc.rpt
report_timing_summary -datasheet -max_paths 10 -file digilent_arty_a7_timing.rpt
report_power                                   -file digilent_arty_a7_power.rpt


# write bitstream
write_bitstream -force "digilent_arty_a7_100t.bit"

exit