Added API descriptions for code generation of the ComputeGraph
Previous version was only detailing the options.pull/94/head
parent
175545244d
commit
f3a667f892
@ -1,11 +1,24 @@
|
||||
|
||||
|
||||
# Options for the graphviz generator
|
||||
# Graphviz generation
|
||||
|
||||
## horizontal (default = True)
|
||||
## API
|
||||
|
||||
```python
|
||||
def graphviz(self,f,config=Configuration())
|
||||
```
|
||||
|
||||
It is a method of the `Schedule` object returned by `computeSchedule`.
|
||||
|
||||
* `f` : Opened file where to write the graphviz description
|
||||
* `config` : An optional configuration object
|
||||
|
||||
## Options for the graphviz generator
|
||||
|
||||
### horizontal (default = True)
|
||||
|
||||
Horizontal or vertical layout for the graph.
|
||||
|
||||
## displayFIFOBuf (default = False)
|
||||
### displayFIFOBuf (default = False)
|
||||
|
||||
By default, the graph is displaying the FIFO sizes computed as result of the scheduling. If you want to know the FIFO variable names used in the code, you can set this option to true and the graph will display the FIFO variable names.
|
||||
@ -1,18 +1,33 @@
|
||||
# Options for Python code generation
|
||||
# Python code generation
|
||||
|
||||
## pyOptionalArgs (default = "")
|
||||
## API
|
||||
|
||||
```python
|
||||
def pythoncode(self,directory,config=Configuration())
|
||||
```
|
||||
|
||||
It is a method of the `Schedule` object returned by `computeSchedule`.
|
||||
|
||||
It generate Python code to implement the static schedule.
|
||||
|
||||
* `directory` : The directory where to generate the C++ files
|
||||
* `config` : An optional configuration object
|
||||
|
||||
## Options for Python code generation
|
||||
|
||||
### pyOptionalArgs (default = "")
|
||||
|
||||
Optional arguments to pass to the Python version of the scheduler function
|
||||
|
||||
## customPythonName (default = "custom")
|
||||
### customPythonName (default = "custom")
|
||||
|
||||
Name of custom header in generated Python code. If you use several scheduler, you may want to use different headers for each one.
|
||||
|
||||
## appNodesPythonName (default = "appnodes")
|
||||
### appNodesPythonName (default = "appnodes")
|
||||
|
||||
Name of AppNodes header in generated Python code. If you use several scheduler, you may want to use different headers for each one.
|
||||
|
||||
## schedulerPythonFileName (default = "sched")
|
||||
### schedulerPythonFileName (default = "sched")
|
||||
|
||||
Name of scheduler file in generated Python code. If you use several scheduler, you may want to use different headers for each one.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue