1 namespace eval Tools::Vivado {
7 @CREATE {CreateProject}
8 @SYNTH {@CREATE Synthesize}
9 @IMPL {@SYNTH Implement}
10 @WORKFLOW {@IMPL GenerateBitstream}
11 @SIMULATE {@CREATE Simulate}
12 @CHECKSYNTAX {@CREATE CheckSyntax}
13 @RTL {@CREATE RtlAnalysis}
26 if {[
info commands version] eq ""} {
return 0}
29 [string first "Vivado" $v] == 0 ||
30 [string first "PlanAhead" $v] == 0
42 set before_tcl_script " -nojournal -nolog -mode batch -notrace -source "
43 exec -ignorestderr vivado -nojournal -nolog -mode batch -notrace -source $script -tclargs "-context" "[
Context::GetFullContext]" >@ stdout
46 proc Initialize {args} {
48 if {[
llength $args] < 1} {
49 puts "Vivado::InitializeTool requires at least 1 argument (the context dict)"
52 if {[
lindex $args 0] eq "-context"} {
53 set context_dict [
lindex $args 1]
54 puts "Context: $context_dict"
57 puts "Vivado::InitializeTool requires -context argument"
63 proc CreateProject {} {
64 set project_name [
Context::Get LaunchSettings project_name]
66 Msg Info "Creating Vivado project \"$project_name\" from $top_path"
70 Msg Info "Running synthesis..."
75 Msg Info "Running implementation..."
78 proc GenerateBitstream {} {
79 Msg Info "Generating bitstream..."
83 Msg Info "Running simulation..."
87 Msg Info "Checking syntax..."
91 Msg Info "Running RTL analysis..."