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
c2841e90
Commit
c2841e90
authored
Jul 01, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parsing python error output in cocotb simulation
parent
bed95aed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
VDTRunner.java
src/com/elphel/vdt/core/launching/VDTRunner.java
+17
-9
Cocotb.xml
tools/Verilog/Cocotb.xml
+3
-3
No files found.
src/com/elphel/vdt/core/launching/VDTRunner.java
View file @
c2841e90
...
...
@@ -104,16 +104,24 @@ public class VDTRunner {
public
void
abortLaunch
(
String
consoleName
){
final
VDTRunnerConfiguration
runConfig
=
runningBuilds
.
resumeConfiguration
(
consoleName
);
Tool
tool
=
ToolsCore
.
getTool
(
runConfig
.
getToolName
());
// null pointer with Icarus/gtkwave - seems it is already closed sometimes
tool
.
setDirty
(
false
);
tool
.
setState
(
TOOL_STATE
.
FAILURE
);
// tool.setRunning(false);
System
.
out
.
println
(
"VDTRunner#abortLaunch("
+
consoleName
+
"), tool="
+
tool
.
getName
()+
" "
+
tool
.
toString
()+
" state="
+
tool
.
getState
()+
" threadID="
+
Thread
.
currentThread
().
getId
());
tool
.
setMode
(
TOOL_MODE
.
STOP
);
// tool.setTimeStamp(); // will set at start
tool
.
toolFinished
();
try
{
Tool
tool
=
ToolsCore
.
getTool
(
runConfig
.
getToolName
());
// null pointer with Icarus/gtkwave - seems it is already closed sometimes
tool
.
setDirty
(
false
);
tool
.
setState
(
TOOL_STATE
.
FAILURE
);
// tool.setRunning(false);
System
.
out
.
println
(
"VDTRunner#abortLaunch("
+
consoleName
+
"), tool="
+
tool
.
getName
()+
" "
+
tool
.
toString
()+
" state="
+
tool
.
getState
()+
" threadID="
+
Thread
.
currentThread
().
getId
());
tool
.
setMode
(
TOOL_MODE
.
STOP
);
// tool.setTimeStamp(); // will set at start
tool
.
toolFinished
();
}
catch
(
NullPointerException
npe
){
System
.
out
.
println
(
"VDTRunner#abortLaunch("
+
consoleName
+
"), tool= null, threadID="
+
Thread
.
currentThread
().
getId
());
}
//removeConfiguration
runningBuilds
.
removeConfiguration
(
runConfig
.
getOriginalConsoleName
());
try
{
runningBuilds
.
removeConfiguration
(
runConfig
.
getOriginalConsoleName
());
// null pointer here
}
catch
(
NullPointerException
npe
){
System
.
out
.
println
(
"VDTRunner#abortLaunch("
+
consoleName
+
")???, tool= null, threadID="
+
Thread
.
currentThread
().
getId
());
}
}
public
void
resumeLaunch
(
String
consoleName
,
int
expectedStep
)
throws
CoreException
{
...
...
tools/Verilog/Cocotb.xml
View file @
c2841e90
...
...
@@ -116,12 +116,12 @@
package=
"FPGA_package"
interface=
"Cocotb"
errors=
"(.*):([0-9]+): [a-z_\- ]*error[: ]?(.*)"
warnings=
"(.*):([0-9]+): [a-z_\- ]*
warning
: (.*)"
info=
"
(.*):([0-9]+): [a-z_\- ]*sorry:
(.*)"
warnings=
"(.*):([0-9]+): [a-z_\- ]*
[warning|sorry]
: (.*)"
info=
"
\s*File\s+"(.*)", line ([0-9]+)[, in ]?
(.*)"
top-file=
"%CocotbDutTopFile"
define=
"COCOTB"
>
<!-- info="(.*):([0-9]+): [a-z_\- ]*sorry: (.*)" -->
<extensions-list>
<extension
mask=
"v"
/>
<extension
mask=
"tf"
/>
...
...
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