Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vdt-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
vdt-plugin
Commits
fcd0f044
Commit
fcd0f044
authored
Mar 10, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in restoring states for Vivado, debugging ISE XST
parent
1e47ffcc
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
195 additions
and
77 deletions
+195
-77
Tool.java
src/com/elphel/vdt/core/tools/params/Tool.java
+46
-41
FPGA_project.xml
tools/FPGA_project.xml
+65
-9
ise_interface.xml
tools/Xilinx_ISE/ise_interface.xml
+41
-17
ise_xst.xml
tools/Xilinx_ISE/ise_xst.xml
+39
-8
vivado_bitstream.xml
tools/Xilinx_Vivado/vivado_bitstream.xml
+2
-1
vivado_interface.xml
tools/Xilinx_Vivado/vivado_interface.xml
+2
-1
No files found.
src/com/elphel/vdt/core/tools/params/Tool.java
View file @
fcd0f044
...
@@ -985,6 +985,7 @@ public class Tool extends Context implements Cloneable, Inheritable {
...
@@ -985,6 +985,7 @@ public class Tool extends Context implements Cloneable, Inheritable {
return
;
return
;
}
}
DEBUG_PRINT
(
"restoring "
+
getName
()+
" state for project "
+
project
);
DEBUG_PRINT
(
"restoring "
+
getName
()+
" state for project "
+
project
);
if
(
getState
()!=
TOOL_STATE
.
KEPT_OPEN
)
{
// do not
QualifiedName
qn
=
new
QualifiedName
(
VDT
.
ID_VDT
,
PROJECT_TOOL_NAME
+
name
+
PROJECT_TOOL_PINNED
);
QualifiedName
qn
=
new
QualifiedName
(
VDT
.
ID_VDT
,
PROJECT_TOOL_NAME
+
name
+
PROJECT_TOOL_PINNED
);
String
str
=
pp
.
get
(
qn
);
String
str
=
pp
.
get
(
qn
);
if
(
str
!=
null
)
try
{
if
(
str
!=
null
)
try
{
...
@@ -1002,6 +1003,7 @@ public class Tool extends Context implements Cloneable, Inheritable {
...
@@ -1002,6 +1003,7 @@ public class Tool extends Context implements Cloneable, Inheritable {
}
}
if
(
getState
()==
TOOL_STATE
.
KEPT_OPEN
)
if
(
getState
()==
TOOL_STATE
.
KEPT_OPEN
)
setStateJustThis
(
TOOL_STATE
.
NEW
);
setStateJustThis
(
TOOL_STATE
.
NEW
);
// See if console with this name is open
}
}
qn
=
new
QualifiedName
(
VDT
.
ID_VDT
,
PROJECT_TOOL_NAME
+
name
+
PROJECT_TOOL_TIMESTAMP
);
qn
=
new
QualifiedName
(
VDT
.
ID_VDT
,
PROJECT_TOOL_NAME
+
name
+
PROJECT_TOOL_TIMESTAMP
);
str
=
pp
.
get
(
qn
);
str
=
pp
.
get
(
qn
);
...
@@ -1031,6 +1033,9 @@ public class Tool extends Context implements Cloneable, Inheritable {
...
@@ -1031,6 +1033,9 @@ public class Tool extends Context implements Cloneable, Inheritable {
setFileTimeStamp
(
qName
.
getLocalName
().
substring
(
filePrefix
.
length
()),
value
);
setFileTimeStamp
(
qName
.
getLocalName
().
substring
(
filePrefix
.
length
()),
value
);
}
}
}
}
}
else
{
DEBUG_PRINT
(
"Do not update state of the open session "
+
getName
()+
" for project "
+
project
);
}
}
}
...
...
tools/FPGA_project.xml
View file @
fcd0f044
...
@@ -308,6 +308,52 @@
...
@@ -308,6 +308,52 @@
label=
"sed command line"
tooltip=
"Remote file prefix to be removed for the local error parser when running ISE tools"
label=
"sed command line"
tooltip=
"Remote file prefix to be removed for the local error parser when running ISE tools"
default=
"sed -u 's@/home/%RemoteUser/%ISEProjectRoot/%%ProjectName/@@'"
/>
default=
"sed -u 's@/home/%RemoteUser/%ISEProjectRoot/%%ProjectName/@@'"
/>
<parameter
id=
"ISEWorkspace"
label=
"Workspace directory"
tooltip=
"Relative (to user home directory) path of the workspace on ISE server"
type=
"String"
default=
"%ISEProjectRoot"
format=
"CopyValue"
readonly=
"true"
/>
<parameter
id=
"ISESnapshotSynth"
label=
"Synthesis snapshot"
tooltip=
"Name of ISE snapshot archive after synthesis"
default=
"%%ProjectName-synth.tgz"
type=
"String"
format=
"CopyValue"
/>
<parameter
id=
"ISESnapshotOptPlace"
label=
"Placement snapshot"
tooltip=
"Name of ISE snapshot archive after optimization/placement"
default=
"%%ProjectName-opt-place.tgz"
type=
"String"
format=
"CopyValue"
/>
<parameter
id=
"ISESnapshotOpt"
label=
"Optimization snapshot"
tooltip=
"Name of ISE snapshot archive after optimization"
default=
"%%ProjectName-opt.tgz"
type=
"String"
format=
"CopyValue"
/>
<parameter
id=
"ISESnapshotOptPower"
label=
"Power optimization snapshot"
tooltip=
"Name of ISE snapshot archive after power optimization"
default=
"%%ProjectName-opt-power.tgz"
type=
"String"
format=
"CopyValue"
/>
<parameter
id=
"ISESnapshotPlace"
label=
"Placement snapshot"
tooltip=
"Name of ISE snapshot archive after placement"
default=
"%%ProjectName-place.tgz"
type=
"String"
format=
"CopyValue"
/>
<parameter
id=
"ISESnapshotOptPhys"
label=
"Physical optimization snapshot"
tooltip=
"Name of ISE snapshot archive after physical optimization"
default=
"%%ProjectName-opt-phys.tgz"
type=
"String"
format=
"CopyValue"
/>
<parameter
id=
"ISESnapshotRoute"
label=
"Routing snapshot"
tooltip=
"Name of ISE snapshot archive after routing"
default=
"%%ProjectName-route.tgz"
type=
"String"
format=
"CopyValue"
/>
<parameter
id=
"ISECleanRestore"
label=
"ISE Clean restore"
tooltip=
"Remove remote ISE project files before unpacking snapshot archives"
default=
"true"
visible=
"true"
type=
"Boolean"
format=
"None"
/>
<input>
<input>
<group
name=
"Genaral"
label=
"General parameters"
>
<group
name=
"Genaral"
label=
"General parameters"
>
"part"
"part"
...
@@ -328,15 +374,6 @@
...
@@ -328,15 +374,6 @@
"VivadoIgnoreSource"
"VivadoIgnoreSource"
"VivadoSedPaths"
"VivadoSedPaths"
</group>
</group>
<group
name=
"ISE"
label=
"ISE general properties"
>
"ISEProjectRoot"
"ISERemoteDir"
"ISELocalDir"
"ISELocalResultDir"
"ISELogDir"
"ISEIgnoreSource"
"ISESedPaths"
</group>
<group
name=
"VivadoDisable"
label=
"Selectively disable Vivado tools"
>
<group
name=
"VivadoDisable"
label=
"Selectively disable Vivado tools"
>
"DisableVivadoSynth"
"DisableVivadoSynth"
<!-- "DisableVivadoOptPlace" -->
<!-- "DisableVivadoOptPlace" -->
...
@@ -357,6 +394,25 @@
...
@@ -357,6 +394,25 @@
"SnapshotOptPhys"
"SnapshotOptPhys"
"SnapshotRoute"
"SnapshotRoute"
</group>
</group>
<group
name=
"ISE"
label=
"ISE general properties"
>
"ISEProjectRoot"
"ISERemoteDir"
"ISELocalDir"
"ISELocalResultDir"
"ISELogDir"
"ISEIgnoreSource"
"ISESedPaths"
</group>
<group
name=
"ISESnapshots"
label=
"ISE snapshot archives"
>
"ISECleanRestore"
"ISESnapshotSynth"
<!-- "ISESnapshotOptPlace" -->
"ISESnapshotOpt"
"ISESnapshotOptPower"
"ISESnapshotPlace"
"ISESnapshotOptPhys"
"ISESnapshotRoute"
</group>
</input>
</input>
<output>
<output>
</output>
</output>
...
...
tools/Xilinx_ISE/ise_interface.xml
View file @
fcd0f044
...
@@ -44,20 +44,21 @@
...
@@ -44,20 +44,21 @@
<output>
<output>
<line
name=
"ise_pre_restore"
>
<line
name=
"ise_pre_restore"
>
"-c"
"-c"
<!-- Create
project
directory on remote server if it did not exist -->
<!-- Create
workspace
directory on remote server if it did not exist -->
"ssh"
"ssh"
"-oBatchMode=yes"
"-oBatchMode=yes"
"-l %RemoteUser %RemoteHost"
"-l %RemoteUser %RemoteHost"
"'"
"'"
"mkdir -p"
"mkdir -p"
"%ISE
ProjectRoot
"
"%ISE
Workspace
"
"' ;"
"' ;"
<!-- Copy snapshot generated after synthesis from local to remote -->
<!-- Copy snapshot generated earlier from local to remote -->
"rsync -avrR -e ssh"
<!-- "rsync -avrR -e ssh" -->
"rsync -avr -e ssh"
<!-- from: -->
<!-- from: -->
"%ISELocalDir/%%StateFile"
"%ISELocalDir/%%StateFile"
<!-- to: -->
<!-- to: -->
"%RemoteUser@%RemoteHost:%ISE
ProjectRoot
"
"%RemoteUser@%RemoteHost:%ISE
Workspace/
"
";"
";"
</line>
</line>
...
@@ -68,11 +69,19 @@
...
@@ -68,11 +69,19 @@
failure=
"ERROR"
failure=
"ERROR"
prompt=
"@@FINISH@@"
prompt=
"@@FINISH@@"
log=
""
>
log=
""
>
"cd ~/%ISEProjectRoot\n"
"cd ~/%ISEWorkspace\n"
"set outputDir ~/%ISEProjectRoot/%ISERemoteDir\n"
<!-- optionally remove project directory on remote before unpacking snapshot -->
"file mkdir $outputDir\n"
<if
ISECleanRestore=
"true"
>
"open_checkpoint %ISERemoteDir/%%StateFile\n"
"rm -f -r"
"puts \"@@FINISH@@\"\n"
"%ISEProjectRoot;"
</if>
<!-- Unpack snapshot on remote -->
"tar -xzf"
"%%StateFile\n"
<!-- Delete snapshot archive on remote -->
"rm -f"
"%%StateFile\n"
"echo \"@@FINISH@@\"\n"
</line>
</line>
</output>
</output>
</tool>
</tool>
...
@@ -93,18 +102,33 @@
...
@@ -93,18 +102,33 @@
prompt=
"@@FINISH@@"
prompt=
"@@FINISH@@"
failure=
"ERROR"
failure=
"ERROR"
log=
""
>
log=
""
>
"cd ~/%ISEProjectRoot\n"
"cd ~/%ISEWorkspace\n"
"set outputDir ~/%ISEProjectRoot/%ISERemoteDir\n"
<!-- Remove old snapshot if it exists (unlikely as it includes timestamp?) -->
"file mkdir $outputDir\n"
"rm -f"
"write_checkpoint -force %ISERemoteDir/%%StateFile\n"
"%%StateFile"
"puts \"@@FINISH@@\"\n"
"\n"
<!-- Create snapshot at remote (workspace, below project) -->
"tar -czf"
"%%StateFile"
"%%ProjectName"
"\n"
"echo \"@@FINISH@@\"\n"
</line>
</line>
<line
name=
"ise_copy_after_save"
>
<line
name=
"ise_copy_after_save"
>
"-c"
"-c"
<!-- Copy snapshot from remote to local -->
"mkdir -p %ISELocalDir ;"
"mkdir -p %ISELocalDir ;"
"rsync -avr -e ssh"
"rsync -avr -e ssh"
"%RemoteUser@%RemoteHost:%ISEProjectRoot/%ISERemoteDir/%%StateFile"
"%RemoteUser@%RemoteHost:%ISEWorkspace/%%StateFile"
"%%StateDir/"
"%%StateDir/ ;"
<!-- Remove snapshot at remote -->
"ssh"
"-oBatchMode=yes"
"-l %RemoteUser %RemoteHost"
"'"
"rm -f"
"%ISEWorkspace/%%StateFile"
"' ;"
</line>
</line>
</output>
</output>
</tool>
</tool>
...
...
tools/Xilinx_ISE/ise_xst.xml
View file @
fcd0f044
...
@@ -183,8 +183,6 @@
...
@@ -183,8 +183,6 @@
</paramtype>
</paramtype>
</typedef>
</typedef>
<syntax
name=
"XSTPrjFile"
format=
"%(verilog work %%ParamValue%|\n%)"
/>
<syntax
name=
"XSTPrjFile"
format=
"%(verilog work %%ParamValue%|\n%)"
/>
</interface>
</interface>
<tool
name=
"ISExst"
label=
"run XST"
<tool
name=
"ISExst"
label=
"run XST"
...
@@ -194,8 +192,12 @@
...
@@ -194,8 +192,12 @@
shell=
"/bin/bash"
shell=
"/bin/bash"
ignore=
"%ISEIgnoreSource"
ignore=
"%ISEIgnoreSource"
description=
"Run XST"
description=
"Run XST"
result=
"ISESnapshotSynth"
log-dir=
"ISELogDir"
log-dir=
"ISELogDir"
state-dir=
"ISELocalDir"
state-dir=
"ISELocalDir"
restore=
"RestoreISESynthesis"
autosave=
"AutosaveISESynthesis"
save=
"SaveISESynthesis"
inherits=
"ISEToolPrototype"
inherits=
"ISEToolPrototype"
>
>
<!-- disable="TRUE" -->
<!-- disable="TRUE" -->
...
@@ -214,6 +216,11 @@
...
@@ -214,6 +216,11 @@
<depends
files=
"FilteredSourceListPar"
/>
<depends
files=
"FilteredSourceListPar"
/>
<depends
files=
"constraints"
/>
<depends
files=
"constraints"
/>
</depends-list>
</depends-list>
<parameter
id=
"clean_start"
label=
"Clean start"
tooltip=
"Delete all files on remote before running XST"
default=
"false"
visible=
"true"
omit=
"false"
type=
"BoolYesNo"
format=
"Dash"
/>
<parameter
id=
"SkipSnapshotSynth"
label=
"Skip snapshot"
tooltip=
"Do not create snapshot after synthesis"
default=
"false"
type=
"Boolean"
format=
"None"
/>
<!-- Constraints parameters -->
<!-- Constraints parameters -->
<parameter
id=
"arch"
label=
"VHDL architecture"
tooltip=
"VHDL Top Level Architecture"
<parameter
id=
"arch"
label=
"VHDL architecture"
tooltip=
"VHDL Top Level Architecture"
default=
""
visible=
"true"
omit=
""
type=
"String"
format=
"Dash"
/>
default=
""
visible=
"true"
omit=
""
type=
"String"
format=
"Dash"
/>
...
@@ -463,13 +470,16 @@
...
@@ -463,13 +470,16 @@
readonly=
"true"
visible=
"true"
/>
readonly=
"true"
visible=
"true"
/>
<parameter
id=
"xst_prj_content"
default=
"%%FilteredSourceList"
<parameter
id=
"xst_prj_content"
default=
"%%FilteredSourceList"
type=
"Stringlist"
format=
"XSTPrjFile"
visible=
"false"
/>
type=
"Stringlist"
format=
"XSTPrjFile"
visible=
"false"
/>
<!-- hidden (calculated) parameters -->
<!-- hidden (calculated) parameters -->
<parameter
id=
"AutosaveISESynthesis"
default=
"?%%ChosenActionIndex=0 ^ %SkipSnapshotSynth=false : true, false"
visible=
"false"
type=
"Boolean"
format=
"None"
/>
<parameter
id=
"useRedirect"
label=
"debug condition"
<parameter
id=
"useRedirect"
label=
"debug condition"
default=
"?(%info = true | %arch # ) ^ %redirect # : true , false"
visible=
"true"
omit=
"false"
type=
"Boolean"
format=
"None"
/>
default=
"?(%info = true | %arch # ) ^ %redirect # : true , false"
visible=
"true"
omit=
"false"
type=
"Boolean"
format=
"None"
/>
<input>
<input>
<group
name=
"General options"
>
<group
name=
"General options"
>
"clean_start"
"SkipSnapshotSynth"
"top"
"top"
"ConstraintsFiles"
"ConstraintsFiles"
"ifmt"
"ifmt"
...
@@ -477,10 +487,13 @@
...
@@ -477,10 +487,13 @@
"output_format"
<!-- outid="ofmt" -->
"output_format"
<!-- outid="ofmt" -->
"output_file"
<!-- outid="ofn" -->
"output_file"
<!-- outid="ofn" -->
"target_device"
<!-- outid="p" -->
"target_device"
<!-- outid="p" -->
"---"
"FilteredSourceListPar"
"FilteredSourceListPar"
"RawOutFile"
"RawOutFile"
"xst_prj"
"xst_prj"
"---"
"ISEProjectRoot"
"ISERemoteDir"
</group>
</group>
<group
name =
"Synthesis Options"
>
<group
name =
"Synthesis Options"
>
"constraints"
<!-- outid="uc" -->
"constraints"
<!-- outid="uc" -->
...
@@ -588,14 +601,16 @@
...
@@ -588,14 +601,16 @@
>
>
"%xst_prj_content"
"%xst_prj_content"
</line>
</line>
//xst_prj
<line
name=
"ise_copy_pre_synth"
>
<line
name=
"ise_copy_pre_synth"
>
"-c"
"-c"
"ssh"
"ssh"
"-oBatchMode=yes"
"-oBatchMode=yes"
"-l %RemoteUser %RemoteHost"
"-l %RemoteUser %RemoteHost"
"'"
"'"
<if
clean_start=
"true"
>
"rm -f -r"
"%ISEProjectRoot;"
</if>
"mkdir -p"
"mkdir -p"
"%ISEProjectRoot;"
"%ISEProjectRoot;"
<if-not
tmpdir=
"/tmp"
>
<if-not
tmpdir=
"/tmp"
>
...
@@ -727,6 +742,7 @@
...
@@ -727,6 +742,7 @@
"quit\n"
"quit\n"
</line>
</line>
<!-- TODO: copy results -->
<!-- TODO: copy results -->
<!--
<line name="ise_copy_after_partgen">
<line name="ise_copy_after_partgen">
"-c"
"-c"
"mkdir -p %ISELocalResultDir ;"
"mkdir -p %ISELocalResultDir ;"
...
@@ -738,7 +754,22 @@
...
@@ -738,7 +754,22 @@
</if>
</if>
"%ISELocalResultDir/"
"%ISELocalResultDir/"
</line>
</line>
-->
</output>
</output>
</tool>
</tool>
<!-- Restore tool for ISESynthesis -->
<tool
name=
"RestoreISESynthesis"
project=
"FPGA_project"
interface=
"ISEInterface"
package=
"FPGA_package"
inherits=
"RestoreISE"
/>
<!-- Save tool for ISESynthesis -->
<tool
name=
"SaveISESynthesis"
project=
"FPGA_project"
interface=
"ISEInterface"
package=
"FPGA_package"
inherits=
"SaveISE"
/>
</vdt-project>
</vdt-project>
tools/Xilinx_Vivado/vivado_bitstream.xml
View file @
fcd0f044
...
@@ -110,7 +110,8 @@
...
@@ -110,7 +110,8 @@
<if-not
reference_bitfile=
""
>
<if-not
reference_bitfile=
""
>
<line
name=
"vivado_copy_pre_opt"
>
<line
name=
"vivado_copy_pre_opt"
>
"-c"
"-c"
"rsync -avrR -e ssh"
<!-- "rsync -avrR -e ssh" -->
"rsync -avr -e ssh"
<!-- from: (trying full name) -->
<!-- from: (trying full name) -->
"%VivadoLocalResultDir/%reference_bitfile"
"%VivadoLocalResultDir/%reference_bitfile"
<!-- to: -->
<!-- to: -->
...
...
tools/Xilinx_Vivado/vivado_interface.xml
View file @
fcd0f044
...
@@ -35,7 +35,8 @@
...
@@ -35,7 +35,8 @@
"%VivadoProjectRoot"
"%VivadoProjectRoot"
"' ;"
"' ;"
<!-- Copy snapshot generated after synthesis from local to remote -->
<!-- Copy snapshot generated after synthesis from local to remote -->
"rsync -avrR -e ssh"
<!-- "rsync -avrR -e ssh" -->
"rsync -avr -e ssh"
<!-- from: -->
<!-- from: -->
"%VivadoLocalDir/%%StateFile"
"%VivadoLocalDir/%%StateFile"
<!-- to: -->
<!-- to: -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment