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
15d642b6
Commit
15d642b6
authored
Aug 01, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
non-buffered vvp output, project-relative directory paths
parent
165f1ada
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
10 deletions
+41
-10
ise_logo.png
icons/ise_logo.png
+0
-0
DirListPromptDialog.java
src/com/elphel/vdt/ui/dialogs/DirListPromptDialog.java
+15
-2
DirListComponent.java
...com/elphel/vdt/ui/options/component/DirListComponent.java
+16
-4
DesignMenu.xml
tools/DesignMenu.xml
+4
-4
IVerilog.xml
tools/Verilog/IVerilog.xml
+6
-0
No files found.
icons/ise_logo.png
0 → 100644
View file @
15d642b6
883 Bytes
src/com/elphel/vdt/ui/dialogs/DirListPromptDialog.java
View file @
15d642b6
...
...
@@ -37,13 +37,26 @@ import org.eclipse.swt.widgets.Shell;
*/
public
class
DirListPromptDialog
extends
ListPromptDialog
{
public
DirListPromptDialog
(
final
Shell
parentShell
,
String
title
)
{
public
DirListPromptDialog
(
final
Shell
parentShell
,
String
title
,
final
String
projectPath
)
{
super
(
parentShell
,
title
,
new
IAddAction
()
{
public
String
getNewValue
()
{
DirectoryDialog
dialog
=
new
DirectoryDialog
(
parentShell
);
String
selectedDir
=
dialog
.
open
();
// try to replace prefix with ${"verilog_project_loc"}
if
((
selectedDir
!=
null
)
&&
selectedDir
.
startsWith
(
projectPath
))
{
if
(
selectedDir
.
equals
(
projectPath
)){
System
.
out
.
println
(
"DirListPromptDialog(): Path equals to project path = \""
+
selectedDir
+
"\", returning \"${verilog_project_path}\""
);
return
"${verilog_project_loc}"
;
}
return
"${verilog_project_loc}"
+
selectedDir
.
substring
(
projectPath
.
length
());
}
return
selectedDir
;
}
}
...
...
src/com/elphel/vdt/ui/options/component/DirListComponent.java
View file @
15d642b6
...
...
@@ -26,9 +26,13 @@
*******************************************************************************/
package
com
.
elphel
.
vdt
.
ui
.
options
.
component
;
import
org.eclipse.core.resources.IProject
;
import
com.elphel.vdt.core.tools.params.Parameter
;
import
com.elphel.vdt.ui.dialogs.ListPromptDialog
;
import
com.elphel.vdt.ui.dialogs.DirListPromptDialog
;
import
com.elphel.vdt.ui.variables.SelectedResourceManager
;
public
class
DirListComponent
extends
ListComponent
{
...
...
@@ -37,8 +41,16 @@ public class DirListComponent extends ListComponent {
}
protected
ListPromptDialog
createDialog
()
{
IProject
project
=
SelectedResourceManager
.
getDefault
().
getSelectedProject
();
String
projectPath
=
null
;
if
(
project
!=
null
)
{
projectPath
=
project
.
getLocation
().
toString
();
}
final
String
fProjectPath
=
projectPath
;
return
new
DirListPromptDialog
(
promptField
.
getVisibleNameField
().
getShell
()
,
"Directory list prompt"
);
,
"Directory list prompt"
,
fProjectPath
);
}
}
tools/DesignMenu.xml
View file @
15d642b6
...
...
@@ -46,8 +46,8 @@
call=
"iverilog"
/>
</menu>
<menu
name=
"ISE"
label=
"ISE Tools"
icon=
"
xilinx
.png"
>
label=
"
Xilinx
ISE Tools"
icon=
"
ise_logo
.png"
>
<menu
name=
"ISE_utils"
label=
"ISE utilities"
icon=
"setup.png"
>
...
...
@@ -99,7 +99,7 @@
</menu>
<menu
name=
"Vivado"
label=
"Vivado Tools"
label=
"
Xilinx
Vivado Tools"
icon=
"vivado_logo.png"
>
<menu
name=
"VivadoUtils"
label=
"Vivado utilities"
...
...
@@ -183,7 +183,7 @@
call=
"VivadoBitstream"
/>
</menu>
<menu
name=
"Quartus"
label=
"Quartus tools"
label=
"
Altera
Quartus tools"
icon=
"quartus16x16.png"
>
<menuitem
name=
"Quartus Server"
label=
"Start remote Quartus session"
...
...
tools/Verilog/IVerilog.xml
View file @
15d642b6
...
...
@@ -124,6 +124,10 @@
format=
"CopyValue"
default=
"iverilog"
readonly=
"false"
visible=
"true"
/>
<parameter
id=
"VVP_prefix"
label=
"VVP command prefix"
type=
"String"
format=
"CopyValue"
default=
"time stdbuf -i0 -o0 -e0"
omit=
""
readonly=
"false"
visible=
"true"
/>
<parameter
id=
"VVP_Exe"
label=
"VVP_Exe"
type=
"Filename"
format=
"CopyValue"
default=
"vvp"
readonly=
"false"
visible=
"true"
/>
...
...
@@ -304,6 +308,7 @@
"Param_Exe"
"Param_Shell_Options"
"IVerilogOther"
"VVP_prefix"
"VVP_Exe"
"GtkWave_Exe"
"LogFile"
...
...
@@ -382,6 +387,7 @@
<!-- "time vvp -v" -->
"%Param_1"
"trap 'killall vvp; ' EXIT;"
"%VVP_prefix"
"%VVP_Exe -v"
"%Param_2"
"%OutFileFull"
...
...
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