Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
bbabecca6This file is pinned to the selected release. Download the original to open it in your design tool.
set script_dir [file dirname [file normalize [info script]]]
set repo_dir [file normalize [file join $script_dir ..]]
set proj_dir [file normalize [file join $repo_dir build lab7_vivado]]
set bit_out [file normalize [file join $repo_dir build lab7_top.bit]]
create_project lab7_c_runtime $proj_dir -part xc7a100tcsg324-1 -force
add_files [glob [file join $repo_dir src common *.v]]
add_files [glob [file join $repo_dir src lab_7_c_runtime mips_core *.v]]
add_files [glob [file join $repo_dir src lab_7_c_runtime *.v]]
add_files [file join $repo_dir src lab_7_c_runtime lab_7_boot.mem]
add_files -fileset constrs_1 [file join $repo_dir constr nexys4ddr_lab7.xdc]
set_property top top [current_fileset]
update_compile_order -fileset sources_1
launch_runs synth_1 -jobs 16
wait_on_run synth_1
if {[get_property PROGRESS [get_runs synth_1]] != "100%"} {
error "lab_7 synthesis failed"
}
launch_runs impl_1 -to_step write_bitstream -jobs 16
wait_on_run impl_1
if {[get_property PROGRESS [get_runs impl_1]] != "100%"} {
error "lab_7 implementation/bitstream failed"
}
set generated_bit [file join $proj_dir lab7_c_runtime.runs impl_1 top.bit]
file copy -force $generated_bit $bit_out
puts "LAB7_BITSTREAM=$bit_out"