Commit 0c056d60 authored by Andrey Filippov's avatar Andrey Filippov

added action icons for iverilog, using simulate directory for generated

files
parent d2d7c636
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?> <?eclipse version="3.0"?>
<plugin> <plugin>
<extension point="org.eclipse.ui.editors">
<editor
id="net.sourceforge.GTKWave"
name="GTKWave Waveform Viewer"
extensions="sav,lxt"
command="gtkwave"
icon="gtkwave.ico"
default="false">
</editor>
</extension>
<extension <extension
point="org.eclipse.ui.editors"> point="org.eclipse.ui.editors">
<editor <editor
...@@ -24,6 +36,8 @@ ...@@ -24,6 +36,8 @@
<contentTypeBinding contentTypeId="com.elphel.vdt.veditor.vhdlSource"/> <contentTypeBinding contentTypeId="com.elphel.vdt.veditor.vhdlSource"/>
</editor> </editor>
</extension> </extension>
<extension <extension
point="org.eclipse.ui.editors"> point="org.eclipse.ui.editors">
......
...@@ -26,23 +26,50 @@ ...@@ -26,23 +26,50 @@
<paramtype kind="number" lo="0" hi="2147483647" format="%d" /> <paramtype kind="number" lo="0" hi="2147483647" format="%d" />
</typedef> </typedef>
<!-- All below changed case sensitivity (was "insensitive" ) -->
<typedef name="String"> <typedef name="String">
<paramtype kind="string" sensitivity="insensitive" textkind="text" /> <paramtype kind="string" sensitivity="sensitive" textkind="text" />
</typedef>
<typedef name="Stringlist" list="true">
<paramtype kind="string" sensitivity="sensitive" textkind="text" />
</typedef> </typedef>
<typedef name="Filename"> <typedef name="Filename">
<paramtype kind="string" sensitivity="insensitive" textkind="file" /> <paramtype kind="string" sensitivity="sensitive" textkind="file" />
</typedef> </typedef>
<typedef name="Filelist" list="true"> <typedef name="Filelist" list="true">
<paramtype kind="string" sensitivity="insensitive" textkind="file" /> <paramtype kind="string" sensitivity="sensitive" textkind="file" />
</typedef> </typedef>
<typedef name="Pathname"> <typedef name="Pathname">
<paramtype kind="string" sensitivity="insensitive" textkind="dir" /> <paramtype kind="string" sensitivity="sensitive" textkind="dir" />
</typedef> </typedef>
<typedef name="Pathlist" list="true"> <typedef name="Pathlist" list="true">
<paramtype kind="string" sensitivity="sensitive" textkind="dir" />
</typedef>
<!-- Case-insensitive variants -->
<typedef name="StringInsensitive">
<paramtype kind="string" sensitivity="insensitive" textkind="text" />
</typedef>
<typedef name="FilenameInsensitive">
<paramtype kind="string" sensitivity="insensitive" textkind="file" />
</typedef>
<typedef name="FilelistInsensitive" list="true">
<paramtype kind="string" sensitivity="insensitive" textkind="file" />
</typedef>
<typedef name="PathnameInsensitive">
<paramtype kind="string" sensitivity="insensitive" textkind="dir" />
</typedef>
<typedef name="PathlistInsensitive" list="true">
<paramtype kind="string" sensitivity="insensitive" textkind="dir" /> <paramtype kind="string" sensitivity="insensitive" textkind="dir" />
</typedef> </typedef>
......
...@@ -2,67 +2,35 @@ ...@@ -2,67 +2,35 @@
<vdt-project> <vdt-project>
<interface name = "project_interface"> <interface name = "project_interface">
<typedef name="StringType"> <!-- All renamed to match Basicinterface.xml
<typedef name="String">
<paramtype kind="string" <paramtype kind="string"
maxlength="256" maxlength="256"
sensitivity="sensitive"/> sensitivity="sensitive"/>
</typedef> </typedef>
<typedef name="StringListType" list="true"> <typedef name="Stringlist" list="true">
<paramtype kind="string" <paramtype kind="string"
maxlength="256" maxlength="256"
sensitivity="sensitive"/> sensitivity="sensitive"/>
</typedef> </typedef>
<typedef name="DirType"> <typedef name="Pathname">
<paramtype kind="string" <paramtype kind="string"
maxlength="256" maxlength="256"
sensitivity="sensitive" sensitivity="sensitive"
textkind="dir"/> textkind="dir"/>
</typedef> </typedef>
<typedef name="FileType">
<typedef name="Filename">
<paramtype kind="string" <paramtype kind="string"
maxlength="256" maxlength="256"
sensitivity="sensitive" sensitivity="sensitive"
textkind="file"/> textkind="file"/>
</typedef> </typedef>
<syntax name="ValueSyntax" format="%%ParamValue" /> <syntax name="CopyValue" format="%%ParamValue" />
-->
</interface> </interface>
<!--
<project name="project_settings"
label="Project parameters for project_settings"
interface="project_interface">
<parameter id = "SimulationTopFile"
label = "Project top simulation file"
type = "FileType"
default = "default_top (testing)"
format = "ValueSyntax"
readonly= "false" />
<parameter id = "SimulationTopModule"
label = "Project top simulation module"
type = "StringType"
default = ""
format = "ValueSyntax"
readonly= "false" />
<parameter id = "BuildDir"
label = "project build directory"
type = "DirType"
default = "build"
format = "ValueSyntax"
readonly= "false" />
<input>
<group name="General" label="Project properties">
"SimulationTopFile"
"SimulationTopModule"
"BuildDir"
</group>
</input>
<output>
</output>
</project>
-->
</vdt-project> </vdt-project>
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
format = '--%%ParamName="%%ProjectPath"'/> format = '--%%ParamName="%%ProjectPath"'/>
<syntax name = "JustValueSyntax" <syntax name = "JustCopyValue"
format = "%%ParamValue"></syntax> format = "%%ParamValue"></syntax>
</interface> </interface>
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
--> -->
<!-- exe = "?%%OS: Windows=mytest.bat, Linux=mytest.sh" --> <!-- exe = "?%%OS: Windows=mytest.bat, Linux=mytest.sh" -->
<tool name = "MyTool" <tool name = "MyTool"
project = "project_settings" project = "FPGA_project"
label = "My Tool" label = "My Tool"
shell = "?%%OS: Windows=, Linux=/bin/bash" shell = "?%%OS: Windows=, Linux=/bin/bash"
interface = "MyControlInterface" interface = "MyControlInterface"
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
<parameter id = "Param_Shell_Options" <parameter id = "Param_Shell_Options"
label = "Param_Shell_Options" label = "Param_Shell_Options"
type = "MyString" type = "MyString"
format = "JustValueSyntax" format = "JustCopyValue"
default = "-c" default = "-c"
readonly = "false" readonly = "false"
visible = "true"/> visible = "true"/>
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
<parameter id = "Param_parser" <parameter id = "Param_parser"
type = "MyType1" type = "MyType1"
format = "JustValueSyntax" format = "JustCopyValue"
default = "| python -u /data/vdt/workspace_01/veditor/parsers/parser01.py; ls -all" default = "| python -u /data/vdt/workspace_01/veditor/parsers/parser01.py; ls -all"
readonly = "false" readonly = "false"
visible = "true" visible = "true"
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--iverilog -Dlegacy_model -gno-specify -v -o x353mjpeg_test -sglbl -stestbench353
-y./unisims -y. x353_1.tf glbl.v -->
<vdt-project> <vdt-project>
<interface name="IVerilog" extends="project_interface"> <interface name="IVerilog" extends="project_interface">
<!-- Syntax definitions --> <!-- Syntax definitions -->
<syntax name="BoolParamSyntax" format="-%%ParamName" />
<syntax name="InputPatternSyntax" format="’%%ParamValue’" />
<typedef name="ModuleLibraryType" list="true">
<paramtype kind="string" default="" textkind="dir"
maxlength="256" sensitivity="sensitive" />
</typedef>
<syntax name="D_ParamSyntax" format="-D%%ParamName" /> <syntax name="D_ParamSyntax" format="-D%%ParamName" />
<syntax name="g_ParamSyntax" format="-g%%ParamName" /> <syntax name="g_ParamSyntax" format="-g%%ParamName" />
<syntax name="NospecifySyntax" format="-gno-specify" />
<typedef name="LegacyModelType">
<paramtype kind="bool" formatTrue="-Dlegacy_model"
formatFalse="" />
</typedef>
<typedef name="NoSpecifyType">
<paramtype kind="bool" formatTrue="-gno-specify"
formatFalse="" />
</typedef>
<!-- Actually used -->
<syntax name="JustValueSyntax" format="%%ParamValue"></syntax>
<syntax name="TopModuleSyntax" format="-s%%TopModule" /> <syntax name="TopModuleSyntax" format="-s%%TopModule" />
<syntax name="TopModulesOtherSyntax" format="%(-s%%ParamValue%| %)" /> <syntax name="TopModulesOtherSyntax" format="%(-s%%ParamValue%| %)" />
<syntax name="ModuleLibrarySyntax" format="%(-y%%ParamValue%| %)" /> <syntax name="ModuleLibrarySyntax" format="%(-y%%ParamValue%| %)" />
<syntax name="SourceListSyntax" format="%(%%SourceList%| %)" /> <syntax name="SourceListSyntax" format="%(%%SourceList%| %)" />
<syntax name="ExtraFilesSyntax" format="%(%%ParamValue%| %)" /> <syntax name="ExtraFilesSyntax" format="%(%%ParamValue%| %)" />
<syntax name="exeFileSyntax" format="%%ParamValue" />
<syntax name="SwitchSyntax" format="-%%ParamName" /> <syntax name="SwitchSyntax" format="-%%ParamName" />
<syntax name="DbgCurrentFileSyntax" format="echo &quot;%%CurrentFile&quot; ;" />
<syntax name="DbgChosenActionIndexSyntax" format="echo &quot;index=%%ChosenActionIndex&quot; ;" />
<syntax name="BuildStampSyntax" format="%%BuildStamp" />
<syntax name="GrepFindSyntax" <syntax name="GrepFindSyntax"
format="| { grep --line-buffered -E &quot;%%ParamValue&quot; || true; }" /> format="| { grep --line-buffered -E &quot;%%ParamValue&quot; || true; }" />
<syntax name="GrepSkipSyntax" <syntax name="GrepSkipSyntax"
format="| { grep --line-buffered -v &quot;%%ParamValue&quot; || true; }" /> format="| { grep --line-buffered -v &quot;%%ParamValue&quot; || true; }" />
<!-- <syntax name="LogFileSyntax" format="%BuildDirSlash%%ParamValue-%%BuildStamp.log" />
<syntax name="OutFileSyntax" format="%BuildDirSlash%%ParamValue-%%BuildStamp.ivlg" />
<syntax name="LxtFileSyntax" format="%BuildDirSlash%%ParamValue-%%BuildStamp.lxt" />
-->
<syntax name="LogFileSyntax" format="%%ParamValue-%%BuildStamp.log" /> <syntax name="LogFileSyntax" format="%%ParamValue-%%BuildStamp.log" />
<syntax name="OutputFileSyntax" format="%%ParamValue-%%BuildStamp.ivlg" /> <syntax name="OutFileSyntax" format="%%ParamValue-%%BuildStamp.ivlg" />
<syntax name="LxtFileSyntax" format="%%ParamValue-%%BuildStamp.lxt" /> <syntax name="LxtFileSyntax" format="%%ParamValue-%%BuildStamp.lxt" />
<syntax name="LxtParamFileSyntax"
<!--
<syntax name="LogFileLatestSyntax"
format="ln -sf %BuildDirSlash%%ParamValue-%%BuildStamp.log %BuildDirSlash%%ParamValue-latest.log;" />
<syntax name="OutputFileLatestSyntax"
format="ln -sf %BuildDirSlash%%ParamValue-%%BuildStamp.ivlg %BuildDirSlash%%ParamValue-latest.ivlg;" />
<syntax name="LxtFileLatestSyntax"
format="ln -sf %BuildDirSlash%%ParamValue-%%BuildStamp.lxt %BuildDirSlash%%ParamValue-latest.lxt;" />
-->
<syntax name="LogFileLatestSyntax"
format="ln -sf %%ParamValue-%%BuildStamp.log %BuildDir/%%ParamValue-latest.log;" />
<syntax name="OutputFileLatestSyntax"
format="ln -sf %%ParamValue-%%BuildStamp.ivlg %BuildDir/%%ParamValue-latest.ivlg;" />
<syntax name="LxtFileLatestSyntax"
format="ln -sf %%ParamValue-%%BuildStamp.lxt %BuildDir/%%ParamValue-latest.lxt;" />
<!-- include file has target, not link value -->
<syntax name="LxtParamFileSyntax"
format="parameter lxtname=&quot;%%ParamValue-%%BuildStamp.lxt&quot;;" /> format="parameter lxtname=&quot;%%ParamValue-%%BuildStamp.lxt&quot;;" />
<!-- <syntax name="LxtParamFileSyntax" format="parameter lxtname=%%ParamValue;"
/> -->
<syntax name="IncludeParamSyntax" format="%(%%ParamValue%|\n%)" /> <syntax name="IncludeParamSyntax" format="%(%%ParamValue%|\n%)" />
<!-- Types definitions -->
<typedef name="ModuleLibraryType" list="true">
<!-- typedef --> <paramtype kind="string" default="" textkind="dir"
maxlength="256" sensitivity="sensitive" />
<typedef name="ExtraFilesType" list="true">
<paramtype kind="string" textkind="file" maxlength="256"
sensitivity="sensitive" />
</typedef>
<typedef name="exeType">
<paramtype kind="string" maxlength="256" sensitivity="sensitive"
textkind="file" />
</typedef> </typedef>
<typedef name="SwitchType"> <typedef name="SwitchType">
<paramtype kind="bool" formatTrue="-%%ParamName" <paramtype kind="bool" formatTrue="-%%ParamName"
formatFalse="" /> formatFalse="" />
</typedef> </typedef>
<!-- <typedef name= "StringType" list="true"> <paramtype kind="string" <typedef name="D_ParamType">
textkind="text" maxlength="256" sensitivity="sensitive"/> </typedef> --> <paramtype kind="bool" formatTrue="-D%%ParamName"
formatFalse="" />
</typedef>
<typedef name="g_ParamType">
<paramtype kind="bool" formatTrue="-g%%ParamName"
formatFalse="" />
</typedef>
</interface> </interface>
<!-- <project name="IVerilogProject" label="iverilog project label" interface="IVerilog">
</project> --> <project name="FPGA_project" label="Project parameters for FPGA_project"
<project name="project_settings" label="Project parameters for project_settings"
interface="project_interface"> interface="project_interface">
<parameter id="SimulationTopFile" label="Project top simulation file" <parameter id="SimulationTopFile" label="Project top simulation file"
type="FileType" default="default_top (testing)" format="ValueSyntax" type="Filename" default="default_top (testing)" format="CopyValue"
readonly="false" /> readonly="false" />
<parameter id="SimulationTopModule" label="Project top simulation module" <parameter id="SimulationTopModule" label="Project top simulation module"
type="StringType" default="" format="ValueSyntax" readonly="false" /> type="String" default="" format="CopyValue" readonly="false" />
<parameter id="BuildDir" label="project build directory" <parameter id="BuildDir" label="project build directory"
type="DirType" default="build" format="ValueSyntax" readonly="false" /> type="Pathname" default="simulation" format="CopyValue" readonly="false" />
<!-- Invisible (calculated) project-wide parameters -->
<parameter id="BuildDirSlash" type="Pathname" visible="false"
default="?%BuildDir=:,%BuildDir/" format="CopyValue"/>
<input> <input>
<group name="General" label="Project properties"> <group name="General" label="Project properties">
"SimulationTopFile" "SimulationTopFile"
...@@ -108,11 +95,11 @@ ...@@ -108,11 +95,11 @@
<tool name="iverilog" project="project_settings" label="Icarus Verilog compiler" <tool name="iverilog" project="FPGA_project" label="Icarus Verilog compiler"
exe="iverilog" shell="?%%OS: Windows=shell:, Linux=/bin/bash" exe="iverilog" shell="?%%OS: Windows=shell:, Linux=/bin/bash"
interface="IVerilog" errors="(.*):([0-9]+): [a-z_\- ]*error: (.*)" interface="IVerilog" errors="(.*):([0-9]+): [a-z_\- ]*error: (.*)"
warnings="(.*):([0-9]+): [a-z_\- ]*warning: (.*)" info="(.*):([0-9]+): [a-z_\- ]*info: (.*)"> <!--does not actually exist --> warnings="(.*):([0-9]+): [a-z_\- ]*warning: (.*)" info="(.*):([0-9]+): [a-z_\- ]*info: (.*)"> <!--do not actually exist -->
<extensions-list> <extensions-list>
<extension mask="v" /> <extension mask="v" />
...@@ -120,34 +107,32 @@ ...@@ -120,34 +107,32 @@
</extensions-list> </extensions-list>
<action-menu> <action-menu>
<action label="Simulate" resource="%SimulationTopFile" <action label="Simulate project " resource="%SimulationTopFile"
check-extension="false" check-existence="true" icon="iverilog.ico" /> check-extension="false" check-existence="true" icon="iverilog.ico" />
<action label="Simulate for" resource="%%SelectedFile" <action label="Simulate selected" resource="%%SelectedFile"
check-extension="true" check-existence="true" /> check-extension="true" check-existence="true" icon="iverilog_pointer.png" />
<action label="Verify" resource="%%SelectedFile" <action label="Verify" resource="%%SelectedFile"
check-extension="true" check-existence="true" icon="newmod_wiz.gif" /> check-extension="true" check-existence="true" icon="iverilog_check.png" />
<action label="Empty" resource="" icon="sample.gif" /> <!-- <action label="Empty" resource="" icon="sample.gif" />
<action label="Just try for" resource="%%OS" /> <action label="Just try for" resource="%%OS" /> -->
</action-menu> </action-menu>
<parameter id="Param_Shell_Options" label="Param_Shell_Options" <parameter id="Param_Shell_Options" label="Param_Shell_Options"
type="StringType" format="JustValueSyntax" default="-c" readonly="false" type="String" format="CopyValue" default="-c" readonly="false"
visible="true" /> visible="true" />
<!-- Intentional error: No, does not detect duplicates yet -->
<parameter id="Param_PreExe" label="Param_PreExe" type="StringType" <parameter id="Param_PreExe" label="Param_PreExe" type="String"
format="JustValueSyntax" default="" readonly="false" visible="true" /> format="CopyValue" default="" readonly="false" visible="true" />
<parameter id="Param_Exe" label="Param_Exe" type="exeType" <parameter id="Param_Exe" label="Param_Exe" type="Filename"
format="exeFileSyntax" default="/usr/bin/iverilog" readonly="false" format="CopyValue" default="/usr/bin/iverilog" readonly="false"
visible="true" /> visible="true" />
<parameter id="Param_TopModule" label="Top module extracted from the chosen target file" <parameter id="Param_TopModule" label="Top module extracted from the chosen target file"
type="StringType" format="TopModuleSyntax" default="%%TopModule" type="String" format="TopModuleSyntax" default="%%TopModule"
readonly="true" visible="true" /> readonly="true" visible="true" />
<parameter id="TopModulesOther" type="StringListType" <parameter id="TopModulesOther" type="Stringlist"
format="TopModulesOtherSyntax" default="" omit="" format="TopModulesOtherSyntax" default="" omit=""
label="Select top modules not referenced by the chosen target" label="Select top modules not referenced by the chosen target"
readonly="false" visible="true" /> readonly="false" visible="true" />
...@@ -157,31 +142,26 @@ ...@@ -157,31 +142,26 @@
omit="" readonly="false" visible="true" /> omit="" readonly="false" visible="true" />
<parameter id="ExtraFiles" type="ExtraFilesType" format="ExtraFilesSyntax" <parameter id="ExtraFiles" type="Filelist" format="ExtraFilesSyntax"
default="" label="Select additional files to include" readonly="false" default="" label="Select additional files to include" readonly="false"
visible="true" /> visible="true" />
<parameter id="LegacyModel" outid="legacy_model" type="LegacyModelType" <parameter id="legacy_model" outid="legacy_model" type="D_ParamType"
format="D_ParamSyntax" default="true" label="Use legacy model" /> format="D_ParamSyntax" default="true" label="Use legacy model" />
<parameter id="NoSpecify" outid="no-specify" type="NoSpecifyType" <parameter id="no_specify" outid="no-specify" type="g_ParamType"
format="g_ParamSyntax" default="true" label="Use no-specify" /> format="NospecifySyntax" default="true" label="Use no-specify" />
<!-- -->
<!-- --> <!-- -->
<parameter id="v" type="SwitchType" format="SwitchSyntax" <parameter id="v" type="SwitchType" format="SwitchSyntax"
default="true" label="Verbose" /> default="true" label="Verbose" />
<parameter id="Param_SourceList" label="Param_SourceList" <parameter id="Param_SourceList" label="Param_SourceList"
type="StringListType" format="SourceListSyntax" default="" readonly="true" type="Stringlist" format="SourceListSyntax" default="" readonly="true"
visible="true" /> visible="true" />
<parameter id="DbgCurrentFile" label="DbgCurrentFile" type="StringType"
format="DbgCurrentFileSyntax" default="" readonly="false" visible="true" />
<parameter id="ChosenActionIndex" label="ChosenActionIndex"
type="StringType" format="DbgChosenActionIndexSyntax" default=""
readonly="false" visible="true" />
<parameter id="ShowNoProblem" type="BoolYesNo" format="None" <parameter id="ShowNoProblem" type="BoolYesNo" format="None"
default="false" label="Show output with no errors/warnings" /> default="false" label="Show output with no errors/warnings" />
...@@ -205,64 +185,99 @@ ...@@ -205,64 +185,99 @@
<parameter id="LogFile" label="Simulator log file prefix" <parameter id="LogFile" label="Simulator log file prefix"
type="StringType" default="%%CurrentFileBase" format="LogFileSyntax" type="String" default="%%CurrentFileBase" format="LogFileSyntax"
readonly="false" /> readonly="false" />
<parameter id="OutFile" label="Simulator intermediate file prefix" <parameter id="OutFile" label="Simulator intermediate file prefix"
type="StringType" default="%%CurrentFileBase" format="OutputFileSyntax" type="String" default="%%CurrentFileBase" format="OutFileSyntax"
readonly="false" /> readonly="false" />
<parameter id="LxtDumpFile" label="Simulator LXT dump file prefix" <parameter id="LxtDumpFile" label="Simulator LXT dump file prefix"
type="StringType" default="%%CurrentFileBase" format="LxtFileSyntax" type="String" default="%%CurrentFileBase" format="LxtFileSyntax"
readonly="false" /> readonly="false" />
<parameter id="GTKWaveSavFile" label="GTKWave sav file" <parameter id="GTKWaveSavFile" label="GTKWave sav file"
type="FileType" default="%%CurrentFileBase.sav" format="ValueSyntax" type="Filename" default="%%CurrentFileBase.sav" format="CopyValue"
omit="" readonly="false" /> omit="" readonly="false" />
<parameter id="GrepFindErr" label="Grep pattern for errors only" <parameter id="GrepFindErr" label="Grep pattern for errors only"
type="StringType" format="GrepFindSyntax" default="error" readonly="false" type="String" format="GrepFindSyntax" default="error" readonly="false"
visible="true" /> visible="true" />
<parameter id="GrepFindErrWarn" label="Grep pattern for both errors and warnings" <parameter id="GrepFindErrWarn" label="Grep pattern for both errors and warnings"
type="StringType" format="GrepFindSyntax" default="error|warning" type="String" format="GrepFindSyntax" default="error|warning"
readonly="false" visible="true" /> readonly="false" visible="true" />
<parameter id="GrepSkip1" label="Grep skip pattern" type="StringType" <parameter id="GrepSkip1" label="Grep skip pattern" type="String"
format="GrepSkipSyntax" default="(null)" readonly="false" visible="true" /> format="GrepSkipSyntax" default="(null)" readonly="false" visible="true" />
<parameter id="Param_1" label="Param_1" type="StringType"
format="JustValueSyntax" default="" omit="" readonly="false" visible="true" />
<parameter id="Param_2" label="Param_2" type="StringType"
format="JustValueSyntax" default="" omit="" readonly="false" visible="true" />
<parameter id="Param_3" label="Param_3" type="StringType"
format="JustValueSyntax" default="" omit="" readonly="false" visible="true" />
<parameter id="Param_4" label="Param_4" type="StringType"
format="JustValueSyntax" default="" omit="" readonly="false" visible="true" />
<parameter id="IVerilogOther" label="Other IVerilog options" <parameter id="IVerilogOther" label="Other IVerilog options"
type="StringType" format="JustValueSyntax" default="" omit="" type="String" format="CopyValue" default="" omit=""
readonly="false" visible="true" /> readonly="false" visible="true" />
<parameter id="IncludeParametersList" type="StringListType" <parameter id="IncludeParametersList" type="Stringlist"
format="IncludeParamSyntax" default="" omit="" format="IncludeParamSyntax" default="" omit=""
label="Verilog parameters definition to be included in the test fixture" label="Verilog parameters definition to be included in the test fixture"
readonly="false" visible="true" /> readonly="false" visible="true" />
<!-- Invisible parameters -->
<parameter id="IVerilogActionIndex" type="StringType" <!-- Temporary inserted into the command line, will be removed -->
format="JustValueSyntax" visible="false" default="%%ChosenActionIndex" />
<parameter id="Param_1" label="Param_1" type="String"
<parameter id="SourceList" type="StringListType" format="SourceListSyntax" format="CopyValue" default="" omit="" readonly="false" visible="true" />
default="" readonly="true" visible="false" />
<parameter id="Param_2" label="Param_2" type="String"
<parameter id="iverilog_include_file" type="FileType" format="CopyValue" default="" omit="" readonly="false" visible="true" />
default="IVERILOG_INCLUDE.v" format="JustValueSyntax" visible="false" />
<parameter id="Param_3" label="Param_3" type="String"
<parameter id="LxtDumpFileParameter" type="StringType" format="CopyValue" default="" omit="" readonly="false" visible="true" />
default="%LxtDumpFile" format="LxtParamFileSyntax" visible="false" />
<parameter id="Param_4" label="Param_4" type="String"
format="CopyValue" default="" omit="" readonly="false" visible="true" />
<!-- Invisible parameters, just pass calculated default values -->
<parameter id="IVerilogActionIndex" default="%%ChosenActionIndex"
type="String" format="CopyValue" visible="false" />
<parameter id="SourceList" format="SourceListSyntax"
type="Stringlist" default="" readonly="true" visible="false" />
<parameter id="iverilog_include_file" default="IVERILOG_INCLUDE.v"
type="Filename" format="CopyValue" visible="false" />
<parameter id="LxtDumpFileParameter" default="%LxtDumpFileFull"
type="String" format="LxtParamFileSyntax" visible="false" />
<parameter id="LogFileLatest" default="%LogFile"
type="String" format="LogFileLatestSyntax" visible="false" />
<parameter id="OutFileLatest" type="String" default="%OutFile"
format="OutputFileLatestSyntax" visible="false" />
<parameter id="LxtDumpFileLatest" default="%LxtDumpFile"
type="String" format="LxtFileLatestSyntax" visible="false" />
<!--
<parameter id="LogFileFull" default="%BuildDirSlash%LogFile"
visible="false" type="String" format="CopyValue"/>
<parameter id="OutFileFull" default="%BuildDirSlash%OutFile"
visible="false" type="String" format="CopyValue"/>
<parameter id="LxtDumpFileFull" default="%BuildDirSlash%LxtDumpFile"
visible="false" type="String" format="CopyValue"/>
-->
<parameter id="LogFileFull" default="%BuildDir/%LogFile"
visible="false" type="String" format="LogFileSyntax"/>
<parameter id="OutFileFull" default="%BuildDir/%OutFile"
visible="false" type="String" format="OutFileSyntax"/>
<parameter id="LxtDumpFileFull" default="%BuildDir/%LxtDumpFile"
visible="false" type="String" format="LxtFileSyntax"/>
<input> <input>
<group name="files" label="Files"> <group name="files" label="Files">
...@@ -282,8 +297,8 @@ ...@@ -282,8 +297,8 @@
"SaveLogsPreprocessor" "SaveLogsPreprocessor"
"SaveLogsSimulator" "SaveLogsSimulator"
"v" "v"
"LegacyModel" "legacy_model"
"NoSpecify" "no_specify"
</group> </group>
<group name="Advanced" label="Advanced"> <group name="Advanced" label="Advanced">
"Param_PreExe" "Param_PreExe"
...@@ -303,9 +318,23 @@ ...@@ -303,9 +318,23 @@
</group> </group>
</input> </input>
<output> <output>
<!-- TODO: watch for new lines inserted inside quoted tokens during autoformat - they break output
Maybe add filter to the code to transform white spaces -->
<line name="command_line" sep=" "> <line name="command_line" sep=" ">
"%Param_Shell_Options" "%Param_Shell_Options"
"%Param_PreExe" "%Param_PreExe"
<!-- MKDIR - ALWAYS -->
"mkdir -p"
"%BuildDir"
";"
<if SaveLogsPreprocessor="true"
SaveLogsSimulator="true">
"touch"
"%LogFileFull"
";"
"%LogFileLatest"
</if>
"trap 'killall iverilog; ' EXIT;" "trap 'killall iverilog; ' EXIT;"
"echo 'current PID='$$;" "echo 'current PID='$$;"
"%Param_Exe" "%Param_Exe"
...@@ -314,15 +343,15 @@ ...@@ -314,15 +343,15 @@
"/dev/null" "/dev/null"
</if> </if>
<if-not IVerilogActionIndex="2"> <if-not IVerilogActionIndex="2">
"%OutFile" "%OutFileFull"
</if-not> </if-not>
" -D IVERILOG" " -D IVERILOG"
"%IVerilogOther" "%IVerilogOther"
"%Param_TopModule" "%Param_TopModule"
"%TopModulesOther" "%TopModulesOther"
"%ModuleLibrary" "%ModuleLibrary"
"%LegacyModel" "%legacy_model"
"%NoSpecify" "%no_specify"
"%v" "%v"
"%SourceList" "%SourceList"
"%ExtraFiles" "%ExtraFiles"
...@@ -330,8 +359,8 @@ ...@@ -330,8 +359,8 @@
"2&gt;&amp;1" "2&gt;&amp;1"
</if> </if>
<if SaveLogsPreprocessor="true"> <if SaveLogsPreprocessor="true">
"| tee" "| tee -a"
"%LogFile" "%LogFileFull"
</if> </if>
<if ShowNoProblem="false"> <if ShowNoProblem="false">
<if ShowWarnings="true"> <if ShowWarnings="true">
...@@ -347,35 +376,29 @@ ...@@ -347,35 +376,29 @@
"|| { echo '*** iverilog failed ***'; exit 1; } ;" "|| { echo '*** iverilog failed ***'; exit 1; } ;"
"trap '' EXIT;" "trap '' EXIT;"
<if-not IVerilogActionIndex="2"> <if-not IVerilogActionIndex="2">
"%OutFileLatest"
<!-- "time vvp -v" --> <!-- "time vvp -v" -->
"%Param_1" "%Param_1"
"trap 'killall vvp; ' EXIT;" "trap 'killall vvp; ' EXIT;"
"vvp -v" "vvp -v"
"%Param_2" "%Param_2"
"%OutFile" "%OutFileFull"
"-lxt2 " "-lxt2 "
<if SaveLogsSimulator="true"> <if SaveLogsSimulator="true">
<if SaveLogsPreprocessor="true"> "| tee -a"
"| tee -a" "%LogFileFull"
"%LogFile"
</if>
<if-not SaveLogsPreprocessor="true">
"| tee"
"%LogFile"
</if-not>
</if> </if>
"|| { echo '*** vvp failed ***'; exit 1; } ;" "|| { echo '*** vvp failed ***'; exit 1; } ;"
"trap '' EXIT;" <!-- no "%LxtDumpFileLatest"
trap for GTKWave --> <!-- no trap for GTKWave -->
"trap '' EXIT;"
<!-- "%Param_2" --> <!-- "%Param_2" -->
"%Param_3" "%Param_3"
<if ShowWaves="true"> <if ShowWaves="true">
"gtkwave" "gtkwave"
"%LxtDumpFile" "%LxtDumpFileFull"
"%GTKWaveSavFile" "%GTKWaveSavFile"
"&amp;" "&amp; "
</if> </if>
"%Param_4" "%Param_4"
</if-not> </if-not>
...@@ -389,13 +412,5 @@ ...@@ -389,13 +412,5 @@
</tool> </tool>
<!-- "echo %SimulationTopFile %%CurrentFile ;" -->
<!-- "-s counter_tb" "%SourceList" -->
<!-- <parameter id = "xc_config_file" type = "Filename" default = "xc.cfg"
format = "Option" visible = "false" /> || { echo "iverilog failed"; exit
1; } ; time vvp -v x353mjpeg_test -lxt2 || { echo "vvp failed"; exit 1; }
; || { echo "iverilog failed"; exit 1; } time vvp -v x353mjpeg_test -lxt2
|| { echo "vvp failed"; exit 1; } gtkwave x353.lxt x353_1.sav & exit 0 -->
</vdt-project> </vdt-project>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--iverilog -Dlegacy_model -gno-specify -v -o x353mjpeg_test -sglbl -stestbench353 -y./unisims -y. x353_1.tf glbl.v-->
<vdt-project> <vdt-project>
<interface name="IVerilogDebug" <interface name="IVerilogDebug" extends="project_interface">
extends="project_interface"> <!-- Syntax definitions -->
<!-- Syntax definitions -->
<syntax name="BoolParamSyntax" format="-%%ParamName"/> <syntax name="D_ParamSyntax" format="-D%%ParamName" />
<syntax name="InputPatternSyntax" format= "’%%ParamValue’"/> <syntax name="g_ParamSyntax" format="-g%%ParamName" />
<syntax name="NospecifySyntax" format="-gno-specify" />
<typedef name= "ModuleLibraryType" list="true"> <syntax name="TopModuleSyntax" format="-s%%TopModule" />
<paramtype kind="string" <syntax name="TopModulesOtherSyntax" format="%(-s%%ParamValue%| %)" />
default="" <syntax name="ModuleLibrarySyntax" format="%(-y%%ParamValue%| %)" />
textkind="dir" <syntax name="SourceListSyntax" format="%(%%SourceList%| %)" />
maxlength="256" <syntax name="ExtraFilesSyntax" format="%(%%ParamValue%| %)" />
sensitivity="sensitive"/> <syntax name="SwitchSyntax" format="-%%ParamName" />
</typedef> <syntax name="GrepFindSyntax"
format="| { grep --line-buffered -E &quot;%%ParamValue&quot; || true; }" />
<syntax name="GrepSkipSyntax"
format="| { grep --line-buffered -v &quot;%%ParamValue&quot; || true; }" />
<syntax name="LogFileSyntax" format="%%ParamValue-%%BuildStamp.log" />
<syntax name="OutputFileSyntax" format="%%ParamValue-%%BuildStamp.ivlg" />
<syntax name="LxtFileSyntax" format="%%ParamValue-%%BuildStamp.lxt" />
<syntax name = "D_ParamSyntax"
format = "-D%%ParamName"/> <syntax name="LogFileLatestSyntax" format="ln -sf %%ParamValue-%%BuildStamp.log %%ParamValue-latest.log;" />
<syntax name = "g_ParamSyntax" <syntax name="OutputFileLatestSyntax" format="ln -sf %%ParamValue-%%BuildStamp.ivlg %%ParamValue-latest.ivlg;" />
format = "-g%%ParamName"/> <syntax name="LxtFileLatestSyntax" format="ln -sf %%ParamValue-%%BuildStamp.lxt %%ParamValue-latest.lxt;" />
<typedef name="LegacyModelType"> <syntax name="LxtParamFileSyntax"
<paramtype kind="bool" format="parameter lxtname=&quot;%%ParamValue-%%BuildStamp.lxt&quot;;" />
formatTrue="-Dlegacy_model" <syntax name="IncludeParamSyntax" format="%(%%ParamValue%|\n%)" />
formatFalse=""/>
</typedef> <!-- Types definitions -->
<typedef name="NoSpecifyType">
<paramtype kind="bool" <typedef name="ModuleLibraryType" list="true">
formatTrue="-gno-specify" <paramtype kind="string" default="" textkind="dir"
formatFalse=""/> maxlength="256" sensitivity="sensitive" />
</typedef> </typedef>
<typedef name="SwitchType">
<paramtype kind="bool" formatTrue="-%%ParamName"
<syntax name = "QuotedFileListSyntax" formatFalse="" />
format = "--%%ParamName %(&quot;%%FileList&quot;%| %)"/> </typedef>
<syntax name = "QuotedTopModuleSyntax" <typedef name="D_ParamType">
format = "--%%ParamName=%%TopModule"/> <paramtype kind="bool" formatTrue="-D%%ParamName"
<syntax name = "QuotedTopModulesSyntax" formatFalse="" />
format = "--%%ParamName %(&quot;%%TopModules&quot;%| %)"/> </typedef>
<syntax name = "QuotedSourceListSyntax" <typedef name="g_ParamType">
format = "--%%ParamName %(&quot;%%SourceList&quot;%| %)"/> <paramtype kind="bool" formatTrue="-g%%ParamName"
<syntax name = "QuotedCurrentFileSyntax" formatFalse="" />
format = "--%%ParamName=&quot;%%CurrentFile&quot;"/> </typedef>
<syntax name = "QuotedCurrentFileBaseSyntax"
format = "--%%ParamName=&quot;%%CurrentFileBase&quot;"/> </interface>
<syntax name = "QuotedProjectNameSyntax" <!--
format = "--%%ParamName=&quot;%%ProjectName&quot;"/> <project name="FPGA_project" label="Project parameters for FPGA_project"
interface="project_interface">
<parameter id="SimulationTopFile" label="Project top simulation file"
<!-- Actually used --> type="Filename" default="default_top (testing)" format="CopyValue"
<syntax name="JustValueSyntax" format="%%ParamValue"></syntax> readonly="false" />
<syntax name="TopModuleSyntax" format="-s%%TopModule" />
<syntax name="TopModulesOtherSyntax" format="%(-s%%ParamValue%| %)" /> <parameter id="SimulationTopModule" label="Project top simulation module"
<syntax name="ModuleLibrarySyntax" format="%(-y%%ParamValue%| %)" /> type="String" default="" format="CopyValue" readonly="false" />
<syntax name="SourceListSyntax" format="%(%%SourceList%| %)" />
<syntax name="ExtraFilesSyntax" format="%(%%ParamValue%| %)" /> <parameter id="BuildDir" label="project build directory"
<syntax name="exeFileSyntax" format="%%ParamValue" /> type="Pathname" default="build" format="CopyValue" readonly="false" />
<syntax name="SwitchSyntax" format="-%%ParamName" />
<input>
<syntax name="DbgCurrentFileSyntax" format="echo &quot;%%CurrentFile&quot; ;" /> <group name="General" label="Project properties">
<syntax name="DbgChosenActionIndexSyntax" format="echo &quot;index=%%ChosenActionIndex&quot; ;" /> "SimulationTopFile"
<syntax name="BuildStampSyntax" format="%%BuildStamp" /> "SimulationTopModule"
<syntax name="LogFileSyntax" format="%%BuildStamp.log" /> "BuildDir"
<syntax name="GrepSkipSyntax" format="| grep --line-buffered -v &quot;%%ParamValue&quot;" /> </group>
</input>
<!-- typedef --> <output>
</output>
<typedef name="MyTypeList" list="true"> </project>
<paramtype kind="string"
maxlength="256" -->
sensitivity="sensitive"/>
</typedef> <tool name="iverilog_dbg" project="FPGA_project" label="Icarus Verilog compiler - debug"
exe="iverilog" shell="?%%OS: Windows=shell:, Linux=/bin/bash"
<typedef name= "ExtraFilesType" list="true"> interface="IVerilogDebug" errors="(.*):([0-9]+): [a-z_\- ]*error: (.*)"
<paramtype kind="string" warnings="(.*):([0-9]+): [a-z_\- ]*warning: (.*)" info="(.*):([0-9]+): [a-z_\- ]*info: (.*)"> <!--do not actually exist -->
textkind="file"
maxlength="256" <extensions-list>
sensitivity="sensitive"/> <extension mask="v" />
</typedef> <extension mask="tf" />
</extensions-list>
<typedef name="exeType">
<paramtype kind="string" <action-menu>
maxlength="256" <action label="Simulate" resource="%SimulationTopFile"
sensitivity="sensitive" check-extension="false" check-existence="true" icon="iverilog.ico" />
textkind="file"/> <action label="Simulate for" resource="%%SelectedFile"
</typedef> check-extension="true" check-existence="true" />
<action label="Verify" resource="%%SelectedFile"
<typedef name="SwitchType"> check-extension="true" check-existence="true" icon="newmod_wiz.gif" />
<paramtype kind="bool" <action label="Empty" resource="" icon="sample.gif" />
formatTrue="-%%ParamName" <action label="Just try for" resource="%%OS" />
formatFalse=""/> </action-menu>
</typedef>
<!-- <parameter id="Param_Shell_Options" label="Param_Shell_Options"
<typedef name= "StringType" list="true"> type="String" format="CopyValue" default="-c" readonly="false"
<paramtype kind="string" visible="true" />
textkind="text"
maxlength="256" <parameter id="Param_PreExe" label="Param_PreExe" type="String"
sensitivity="sensitive"/> format="CopyValue" default="" readonly="false" visible="true" />
</typedef>
--> <parameter id="Param_Exe" label="Param_Exe" type="Filename"
format="CopyValue" default="/usr/bin/iverilog" readonly="false"
</interface> visible="true" />
<!--
<project name="IVerilogProject" <parameter id="Param_TopModule" label="Top module extracted from the chosen target file"
label="iverilog project label" type="String" format="TopModuleSyntax" default="%%TopModule"
interface="IVerilog"> readonly="true" visible="true" />
</project>
--> <parameter id="TopModulesOther" type="Stringlist"
<project name="project_settings" format="TopModulesOtherSyntax" default="" omit=""
label="Project parameters for project_settings" label="Select top modules not referenced by the chosen target"
interface="project_interface"> readonly="false" visible="true" />
<parameter id = "SimulationTopFile" <parameter id="ModuleLibrary" type="ModuleLibraryType"
label = "Project top simulation file" format="ModuleLibrarySyntax" default="" label="Select additional libraries to include"
type = "FileType" omit="" readonly="false" visible="true" />
default = "default_top (testing)"
format = "ValueSyntax"
readonly= "false" /> <parameter id="ExtraFiles" type="Filelist" format="ExtraFilesSyntax"
default="" label="Select additional files to include" readonly="false"
<parameter id = "SimulationTopModule" visible="true" />
label = "Project top simulation module"
type = "StringType"
default = "" <parameter id="legacy_model" outid="legacy_model" type="D_ParamType"
format = "ValueSyntax" format="D_ParamSyntax" default="true" label="Use legacy model" />
readonly= "false" />
<parameter id="no_specify" outid="no-specify" type="g_ParamType"
<parameter id = "BuildDir" format="NospecifySyntax" default="true" label="Use no-specify" />
label = "project build directory"
type = "DirType" <!-- -->
default = "build"
format = "ValueSyntax" <parameter id="v" type="SwitchType" format="SwitchSyntax"
readonly= "false" /> default="true" label="Verbose" />
<input> <parameter id="Param_SourceList" label="Param_SourceList"
<group name="General" label="Project properties"> type="Stringlist" format="SourceListSyntax" default="" readonly="true"
"SimulationTopFile" visible="true" />
"SimulationTopModule"
"BuildDir"
</group> <parameter id="ShowNoProblem" type="BoolYesNo" format="None"
</input> default="false" label="Show output with no errors/warnings" />
<output>
</output> <parameter id="ShowWarnings" type="BoolYesNo" format="None"
</project> default="false" label="Show output warnings" />
<parameter id="RemoveBugs" type="BoolYesNo" format="None"
default="false" label="Remove buggy simulator output" />
<tool name = "iverilog_dbg"
project = "project_settings" <parameter id="SaveLogsPreprocessor" type="BoolYesNo"
label = "Icarus Verilog compiler - debug" format="None" default="false" label="Save simulator preprocessor log output" />
exe = "iverilog"
shell = "?%%OS: Windows=shell:, Linux=/bin/bash" <parameter id="SaveLogsSimulator" type="BoolYesNo" format="None"
default="false" label="Save simulator log output" />
interface = "IVerilogDebug"
errors = "(.*):([0-9]+): [a-z_\- ]*error: (.*)" <parameter id="ShowWaves" type="BoolYesNo" format="None"
warnings = "(.*):([0-9]+): [a-z_\- ]*warning: (.*)" default="true" label="Show simulation result in waveform viewer" />
info = "(.*):([0-9]+): [a-z_\- ]*info: (.*)"> <!--does not actually exist -->
<!-- Advanced Section -->
<extensions-list>
<extension mask="v"/>
<extension mask="tf"/> <parameter id="LogFile" label="Simulator log file prefix"
</extensions-list> type="String" default="%%CurrentFileBase" format="LogFileSyntax"
readonly="false" />
<action-menu> <parameter id="OutFile" label="Simulator intermediate file prefix"
<action label="Simulate" resource="%SimulationTopFile" check-extension="false" check-existence="true" icon="iverilog.ico"/> type="String" default="%%CurrentFileBase" format="OutputFileSyntax"
<action label="Simulate for" resource="%%SelectedFile" check-extension="true" check-existence="true"/> readonly="false" />
<action label="Empty" resource="" icon="sample.gif"/> <parameter id="LxtDumpFile" label="Simulator LXT dump file prefix"
<action label="Just try for" resource="%%OS" /> type="String" default="%%CurrentFileBase" format="LxtFileSyntax"
</action-menu> readonly="false" />
<parameter id="GTKWaveSavFile" label="GTKWave sav file"
<parameter id = "Param_Shell_Options" type="Filename" default="%%CurrentFileBase.sav" format="CopyValue"
label = "Param_Shell_Options" omit="" readonly="false" />
type = "StringType"
format = "JustValueSyntax" <parameter id="GrepFindErr" label="Grep pattern for errors only"
default = "-c" type="String" format="GrepFindSyntax" default="error" readonly="false"
readonly = "false" visible="true" />
visible = "true"/>
<!-- Intentional error: No, does not detect duplicates yet--> <parameter id="GrepFindErrWarn" label="Grep pattern for both errors and warnings"
type="String" format="GrepFindSyntax" default="error|warning"
<parameter id = "Param_PreExe" readonly="false" visible="true" />
label = "Param_PreExe"
type = "StringType" <parameter id="GrepSkip1" label="Grep skip pattern" type="String"
format = "JustValueSyntax" format="GrepSkipSyntax" default="(null)" readonly="false" visible="true" />
default = ""
readonly = "false" <parameter id="IVerilogOther" label="Other IVerilog options"
visible = "true"/> type="String" format="CopyValue" default="" omit=""
readonly="false" visible="true" />
<parameter id = "Param_Exe"
label = "Param_Exe" <parameter id="IncludeParametersList" type="Stringlist"
type = "exeType" format="IncludeParamSyntax" default="" omit=""
format = "exeFileSyntax" label="Verilog parameters definition to be included in the test fixture"
default = "/usr/bin/iverilog" readonly="false" visible="true" />
readonly = "false"
visible = "true"/> <!-- Temporary inserted into the command line, will be removed -->
<parameter id = "Param_TopModule" <parameter id="Param_1" label="Param_1" type="String"
label = "Param_TopModule" format="CopyValue" default="" omit="" readonly="false" visible="true" />
type = "StringType"
format = "TopModuleSyntax" <parameter id="Param_2" label="Param_2" type="String"
default = "%%TopModule" format="CopyValue" default="" omit="" readonly="false" visible="true" />
readonly = "true"
visible = "true"/> <parameter id="Param_3" label="Param_3" type="String"
format="CopyValue" default="" omit="" readonly="false" visible="true" />
<parameter id = "TopModulesOther"
type = "StringListType" <parameter id="Param_4" label="Param_4" type="String"
format = "TopModulesOtherSyntax" format="CopyValue" default="" omit="" readonly="false" visible="true" />
default = ""
omit = ""
label = "Select top modules (not referenced by other modules)" <!-- Invisible parameters, just pass calculated default values -->
readonly = "false"
visible = "true"/> <parameter id="IVerilogActionIndex" type="String"
format="CopyValue" visible="false" default="%%ChosenActionIndex" />
<parameter id = "ModuleLibrary"
type = "ModuleLibraryType" <parameter id="SourceList" type="Stringlist" format="SourceListSyntax"
format = "ModuleLibrarySyntax" default="" readonly="true" visible="false" />
default = ""
label = "Select libraries to include" <parameter id="iverilog_include_file" type="Filename"
omit = "" default="IVERILOG_INCLUDE.v" format="CopyValue" visible="false" />
readonly = "false"
visible = "true"/> <parameter id="LxtDumpFileParameter" type="String"
default="%LxtDumpFile" format="LxtParamFileSyntax" visible="false" />
<parameter id = "ExtraFiles" <parameter id="LogFileLatest" type="String"
type = "ExtraFilesType" default="%LogFile" format="LogFileLatestSyntax" visible="false" />
format = "ExtraFilesSyntax" <parameter id="OutFileLatest" type="String"
default = "" default="%OutFile" format="OutputFileLatestSyntax" visible="false" />
label = "Select extra files to include" <parameter id="LxtDumpFileLatest" type="String"
readonly = "false" default="%LxtDumpFile" format="LxtFileLatestSyntax" visible="false" />
visible = "true"/>
<parameter id = "LegacyModel"
outid = "legacy_model" <input>
type = "LegacyModelType" <group name="files" label="Files">
format = "D_ParamSyntax" <!-- "SimulationTopFile" -->
default = "true" "Param_TopModule"
label = "Use legacy model"/> "TopModulesOther"
"ExtraFiles"
<parameter id = "NoSpecify" "ModuleLibrary"
outid = "no-specify" "GTKWaveSavFile"
type = "NoSpecifyType" "IncludeParametersList"
format = "g_ParamSyntax" </group>
default = "true" <group name="options" label="Options">
label = "Use no-specify"/> "ShowWaves"
<!-- --> "ShowNoProblem"
<parameter id = "SourceList" "ShowWarnings"
type = "MyTypeList" "RemoveBugs"
format = "SourceListSyntax" "SaveLogsPreprocessor"
default = "" "SaveLogsSimulator"
readonly = "true" "v"
visible = "false"/> "legacy_model"
<!-- --> "no_specify"
<parameter id = "v" </group>
type = "SwitchType" <group name="Advanced" label="Advanced">
format = "SwitchSyntax" "Param_PreExe"
default = "true" "Param_Exe"
label = "Verbose"/> "Param_Shell_Options"
"IVerilogOther"
<parameter id = "Param_SourceList" "LogFile"
label = "Param_SourceList" "OutFile"
type = "MyTypeList" "LxtDumpFile"
format = "SourceListSyntax" "GrepFindErr"
default = "" "GrepFindErrWarn"
readonly = "true" "GrepSkip1"
visible = "true"/> "Param_1"
"Param_2"
<parameter id = "ErrorsOnly" "Param_3"
type = "LegacyModelType" "Param_4"
format = "D_ParamSyntax" </group>
default = "false" </input>
label = "Only errors/warning to console"/> <output>
<!-- TODO: watch for new lines inserted inside quoted tokens during autoformat - they break output
<parameter id = "Filter_String" Maybe add filter to the code to transform white spaces -->
label = "Filter_String" <line name="command_line" sep=" ">
type = "StringType" "%Param_Shell_Options"
format = "JustValueSyntax" "%Param_PreExe"
default = "2&gt;&amp;1 | tee %LogFile | grep --line-buffered -E 'error|warning' | grep --line-buffered -v &quot;(null):0&quot;" <if SaveLogsPreprocessor="true"
readonly = "false" SaveLogsSimulator="true">
visible = "true"/> "touch"
"%LogFile"
";"
"%LogFileLatest"
<parameter id = "DbgCurrentFile" </if>
label = "DbgCurrentFile"
type = "StringType" "trap 'killall iverilog; ' EXIT;"
format = "DbgCurrentFileSyntax" "echo 'current PID='$$;"
default = "" "%Param_Exe"
readonly = "false" "-o"
visible = "true"/> <if IVerilogActionIndex="2">
"/dev/null"
<parameter id = "ChosenActionIndex" </if>
label = "ChosenActionIndex" <if-not IVerilogActionIndex="2">
type = "StringType" "%OutFile"
format = "DbgChosenActionIndexSyntax" </if-not>
default = "" " -D IVERILOG"
readonly = "false" "%IVerilogOther"
visible = "true"/> "%Param_TopModule"
"%TopModulesOther"
<parameter id = "GrepSkip1" "%ModuleLibrary"
label = "GrepSkip" "%legacy_model"
type = "StringType" "%no_specify"
format = "GrepSkipSyntax" "%v"
default = "(null)" "%SourceList"
readonly = "false" "%ExtraFiles"
visible = "true"/> <if ShowNoProblem="false">
"2&gt;&amp;1"
</if>
<if SaveLogsPreprocessor="true">
<!-- intentional error below - duplicate --> "| tee -a"
<parameter id = "LogFile" "%LogFile"
label = "Simulator Log Filie" </if>
type = "StringType" <if ShowNoProblem="false">
default = "logfile.log" <if ShowWarnings="true">
format = "LogFileSyntax" "%GrepFindErrWarn"
readonly= "false" /> </if>
<if ShowWarnings="false">
"%GrepFindErr"
<input> </if>
<group name="files" label="Files"> <if RemoveBugs="true">
<!-- "SimulationTopFile" --> "%GrepSkip1"
"Param_PreExe" </if>
"Param_Exe" </if>
"Param_Shell_Options" "|| { echo '*** iverilog failed ***'; exit 1; } ;"
"Param_TopModule" "trap '' EXIT;"
"TopModulesOther" <if-not IVerilogActionIndex="2">
"ModuleLibrary" "%OutFileLatest"
"ExtraFiles" <!-- "time vvp -v" -->
</group> "%Param_1"
<group name="options" label="Options"> "trap 'killall vvp; ' EXIT;"
"ErrorsOnly" "vvp -v"
"Filter_String" "%Param_2"
"GrepSkip1" "%OutFile"
"v" "-lxt2 "
"LegacyModel" <if SaveLogsSimulator="true">
"NoSpecify" "| tee -a"
<!-- "SourceList" --> "%LogFile"
</group> </if>
</input> "|| { echo '*** vvp failed ***'; exit 1; } ;"
<output> "%LxtDumpFileLatest"
<line name="command_line" sep=" "> <!-- no trap for GTKWave -->
"%Param_Shell_Options" "trap '' EXIT;"
"%DbgCurrentFile" <!-- "%Param_2" -->
"%ChosenActionIndex" "%Param_3"
"echo BuildDir=%BuildDir ;" <if ShowWaves="true">
"echo CurrentFile=%%CurrentFile ;" "gtkwave"
"echo SimulationTopFile=%SimulationTopFile ;" "%LxtDumpFile"
"echo SimulationTopModule=%SimulationTopModule ;" "%GTKWaveSavFile"
"echo LogFile=%LogFile ;" "&amp; "
"%Param_PreExe" </if>
"%Param_Exe" "%Param_4"
"%Param_TopModule" </if-not>
"%TopModulesOther" </line>
"%ModuleLibrary" <line name="IverilogIncludeFile" dest="iverilog_include_file"
"%LegacyModel" sep="\n">
"%NoSpecify" "%LxtDumpFileParameter"
"%v" "%IncludeParametersList"
"%SourceList" </line>
"%ExtraFiles" </output>
<if ErrorsOnly="true">
"2&gt;&amp;1"
"| tee %LogFile" </tool>
"| grep --line-buffered -E 'error|warning'"
"%GrepSkip1"
<!-- "%Filter_String" -->
</if>
</line>
</output>
</tool>
</vdt-project> </vdt-project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment