read_verilog -sv /eda/processor_ci/rtl/pulpino.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/apb_mock_uart.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/axi2apb_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/axi_mem_if_SP_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/axi_node_intf_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/axi_slice_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/axi_spi_slave_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/boot_code.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/boot_rom_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/clk_rst_gen.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/core2axi_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/core_region.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/dp_ram_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/instr_ram_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/periph_bus_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/peripherals.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/pulpino_top.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/ram_mux.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/random_stalls.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/sp_ram_wrap.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/cluster_clock_gating.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/cluster_clock_inverter.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/cluster_clock_mux2.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/dp_ram.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/generic_fifo.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/pulp_clock_gating.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/pulp_clock_inverter.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/pulp_clock_mux2.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/rstgen.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/components/sp_ram.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/includes/apb_bus.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/includes/apu_defines.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/includes/axi_bus.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/includes/config.sv
read_verilog -sv /var/jenkins_home/workspace/pulpino/pulpino/rtl/includes/debug_bus.sv
set_property include_dirs [list "/var/jenkins_home/workspace/pulpino/pulpino/rtl/includes/" ] [get_filesets sources_1]
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