initial commit
This commit is contained in:
24
fpga/create_project.tcl
Normal file
24
fpga/create_project.tcl
Normal file
@@ -0,0 +1,24 @@
|
||||
# SET PROJECT NAME
|
||||
set project_name Loongson_Soc
|
||||
set project_path ./project
|
||||
set project_part xc7a200tfbg676-1
|
||||
# CLEAR
|
||||
file delete -force $project_path
|
||||
|
||||
create_project -force $project_name $project_path -part $project_part
|
||||
|
||||
# Add conventional sources
|
||||
add_files -scan_for_includes ../rtl
|
||||
|
||||
# Add IPs
|
||||
add_files -norecurse -scan_for_includes ../rtl/ip/PLL_2019_2/clk_pll.xci
|
||||
|
||||
# Add simulation files
|
||||
add_files -fileset sim_1 ../sim/
|
||||
|
||||
# Add constraints
|
||||
add_files -fileset constrs_1 -quiet ./constraints
|
||||
|
||||
set_property top soc_top [current_fileset]
|
||||
set_property -name "top" -value "tb_top" -objects [get_filesets sim_1]
|
||||
set_property -name {xsim.simulate.log_all_signals} -value {true} -objects [get_filesets sim_1]
|
||||
Reference in New Issue
Block a user