Package org.lemsml.export.vhdl
Class VHDLWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.lemsml.export.vhdl.VHDLWriter
-
- All Implemented Interfaces:
IBaseWriter
public class VHDLWriter extends ABaseWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VHDLWriter.Method
static class
VHDLWriter.ScriptType
-
Field Summary
-
Fields inherited from class org.lemsml.export.base.ABaseWriter
format, lems, sli
-
-
Constructor Summary
Constructors Constructor Description VHDLWriter(org.lemsml.jlems.core.type.Lems lems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addComment(StringBuilder sb, String comment)
List
convert()
Map<String,String>
getNeuronModelScripts(String neuronModel, boolean useFlattenedModels)
Map<String,String>
getNeuronModelScripts(String neuronModel, boolean useFlattenedModels, boolean useVirtualSynapses)
String
getPrjFile(Set<String> files)
String
getSimulationScript(VHDLWriter.ScriptType scriptType, String neuronName, boolean useVirtualSynapses)
String
getSimulationScript(VHDLWriter.ScriptType scriptType, Map<String,Float> initialState, String neuronName, boolean useVirtualSynapses)
String
getTCLScript(double simTime, double simTimeStep)
String
getVLLFile(Set<String> files)
void
setSupportedFeatures()
-
Methods inherited from class org.lemsml.export.base.ABaseWriter
getOutputFileName, getOutputFolder, setOutputFileName, setOutputFolder
-
-
-
-
Constructor Detail
-
VHDLWriter
public VHDLWriter(org.lemsml.jlems.core.type.Lems lems) throws ModelFeatureSupportException, org.lemsml.jlems.core.sim.LEMSException, org.neuroml.model.util.NeuroMLException
- Throws:
ModelFeatureSupportException
org.lemsml.jlems.core.sim.LEMSException
org.neuroml.model.util.NeuroMLException
-
-
Method Detail
-
addComment
protected void addComment(StringBuilder sb, String comment)
- Specified by:
addComment
in classABaseWriter
-
getNeuronModelScripts
public Map<String,String> getNeuronModelScripts(String neuronModel, boolean useFlattenedModels) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError, org.lemsml.jlems.core.run.ConnectionError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
org.lemsml.jlems.core.run.ConnectionError
-
getNeuronModelScripts
public Map<String,String> getNeuronModelScripts(String neuronModel, boolean useFlattenedModels, boolean useVirtualSynapses) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError, org.lemsml.jlems.core.run.ConnectionError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
org.lemsml.jlems.core.run.ConnectionError
-
getSimulationScript
public String getSimulationScript(VHDLWriter.ScriptType scriptType, String neuronName, boolean useVirtualSynapses) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
-
getSimulationScript
public String getSimulationScript(VHDLWriter.ScriptType scriptType, Map<String,Float> initialState, String neuronName, boolean useVirtualSynapses) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
-
getPrjFile
public String getPrjFile(Set<String> files) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
-
getVLLFile
public String getVLLFile(Set<String> files) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
-
getTCLScript
public String getTCLScript(double simTime, double simTimeStep) throws org.lemsml.jlems.core.sim.ContentError, org.lemsml.jlems.core.expression.ParseError
- Throws:
org.lemsml.jlems.core.sim.ContentError
org.lemsml.jlems.core.expression.ParseError
-
setSupportedFeatures
public void setSupportedFeatures()
-
convert
public List convert() throws GenerationException, IOException
- Throws:
GenerationException
IOException
-
-