Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for simulation sources #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions digilent_vivado_checkin.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ set required_dirs [list \
$repo_path/src/constraints \
$repo_path/src/ip \
$repo_path/src/hdl \
$repo_path/src/hdl_sim \
$repo_path/src/other \
$repo_path/repo \
$repo_path/repo/local \
Expand All @@ -108,6 +109,7 @@ set required_files [list \
$repo_path/src/constraints/.keep \
$repo_path/src/ip/.keep \
$repo_path/src/hdl/.keep \
$repo_path/src/hdl_sim/.keep \
$repo_path/src/other/.keep \
$repo_path/repo/local/.keep \
$repo_path/repo/cache/.keep \
Expand Down
10 changes: 10 additions & 0 deletions digilent_vivado_checkout.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ if {[string equal [get_filesets -quiet constrs_1] ""]} {
create_fileset -constrset constrs_1
}

# Create 'sim_1' fileset (if not found)
if {[string equal [get_filesets -quiet sim_1] ""]} {
puts "INFO: Creating sim_1 fileset"
create_fileset -simset sim_1
}

# Capture project-specific IP settings
puts "INFO: capturing IP-related settings from $repo_path/project_info.tcl"
set_project_properties_pre_add_repo $proj_name
Expand All @@ -95,6 +101,10 @@ update_ip_catalog -rebuild
# Add hardware description language sources
puts "INFO: Adding HDL sources"
add_files -quiet -norecurse $repo_path/src/hdl
# Add hardware description language sources for simulation
puts "INFO: Adding HDL simulation sources"
add_files -fileset sim_1 -quiet -norecurse $repo_path/src/hdl_sim


# Add IPs
# TODO: handle IP core-container files
Expand Down