This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:sigmastudio:usingsigmastudio:scripting:iscripted [14 Nov 2022 07:43] – [IPAT Options] ananthakalyani Sankar | resources:tools-software:sigmastudio:usingsigmastudio:scripting:iscripted [30 Dec 2022 13:56] (current) – [Properties] ananthakalyani Sankar | ||
---|---|---|---|
Line 1733: | Line 1733: | ||
\\ | \\ | ||
\\ | \\ | ||
- | ===== Selfboot Options ===== | + | =====Selfboot Options===== |
- | ===Enable/ | + | ===Selfboot Port settings=== |
<code csharp> | <code csharp> | ||
- | HResult E2PROMfromserver(bool enable); | + | SELFBOOT_PORT_SETTINGS(string cellName, int[] values); |
</ | </ | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | The method is used to enable/ | + | The method is used to settings the E2prom port through server/ |
\\ | \\ | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | Name: enable | + | Name: Cellname |
\\ | \\ | ||
- | Type: bool | + | Type: String |
\\ | \\ | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | enable value "<fc # | + | Cell name of SigmaDSP IC example: |
\\ | \\ | ||
- | enable value "< | + | Name: PORT_SETTINGS |
\\ | \\ | ||
- | <fc # | + | Type: int |
\\ | \\ | ||
+ | |||
+ | ==Example for Python :== | ||
\\ | \\ | ||
- | ===Write to E2PROM === | + | PORT_SETTINGS |
- | <code csharp> | + | |
- | HResult WriteLatestCompilationthroughDSP(); | + | |
- | </ | + | |
- | <fc # | + | |
\\ | \\ | ||
- | The method is used to load schematic to E2PROM through DSP | + | ==Example for .sss:== |
\\ | \\ | ||
- | Note: compilation is required before using this. | + | System.Collections.Generic.List< |
\\ | \\ | ||
\\ | \\ | ||
- | <code csharp> | + | PORT_SETTINGS.Add(1048576); |
- | HResult WriteLatestCompilationUSB(); | + | PORT_SETTINGS.Add(0x03);\\ |
- | </ | + | PORT_SETTINGS.Add(0x02); |
- | <fc # | + | PORT_SETTINGS.Add(0x03); |
+ | PORT_SETTINGS.Add(0x06); | ||
+ | PORT_SETTINGS.Add(0xc7); | ||
+ | PORT_SETTINGS.Add(10); | ||
+ | PORT_SETTINGS.Add(10000); | ||
+ | PORT_SETTINGS.Add(256); | ||
+ | PORT_SETTINGS.Add(1); | ||
+ | PORT_SETTINGS.Add(0); | ||
\\ | \\ | ||
- | The method is used to load schematic to E2PROM through USB | + | |
- | \\ | + | ===Selfboot write === |
- | Note: compilation is required before using this. | + | |
- | \\ | + | |
- | \\ | + | |
- | ===Erase === | + | |
<code csharp> | <code csharp> | ||
- | HResult EraseMemorythroughDSP | + | SELFBOOTWRITE(string cellName, string writeThrough); |
</ | </ | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | The method is used to Erase the E2PROM. | + | The method is used to write through " |
- | \\ | + | |
\\ | \\ | ||
- | ===Export | + | |
+ | ===Selfboot | ||
<code csharp> | <code csharp> | ||
- | HResult ProjectExportSelfbootFiles(string | + | EXPORT_SELFBOOT_DATA(bool readThroughDSP, |
</ | </ | ||
<fc # | <fc # | ||
Line 1797: | Line 1798: | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | Name: path | + | Name: projectexportFile |
\\ | \\ | ||
Type: | Type: | ||
Line 1806: | Line 1807: | ||
\\ | \\ | ||
\\ | \\ | ||
+ | |||
+ | ===Selfboot Erase=== | ||
+ | <code csharp> | ||
+ | SELFBOOTERASE(string cellName); | ||
+ | </ | ||
+ | <fc # | ||
+ | \\ | ||
+ | The method is used to Erase the E2PROM. | ||
+ | \\ | ||
+ | ====Examples==== | ||
+ | |||
+ | The following shows an example of how to using Selfboot . | ||
+ | |||
+ | <code csharp> | ||
+ | rom win32com.client.dynamic import Dispatch | ||
+ | from win32com.client import VARIANT | ||
+ | import pythoncom | ||
+ | import sys | ||
+ | |||
+ | try: | ||
+ | import clr | ||
+ | except: | ||
+ | import pip | ||
+ | pip.main([' | ||
+ | import clr | ||
+ | |||
+ | clr.AddReference(' | ||
+ | from System.Collections.Generic import List | ||
+ | |||
+ | PORT_SETTINGS = VARIANT(pythoncom.VT_ARRAY| pythoncom.VT_I4, | ||
+ | |||
+ | ## This program is designed to test SigmaStudio scripting from Python. | ||
+ | if __name__ == " | ||
+ | | ||
+ | server = Dispatch(' | ||
+ | print(' | ||
+ | |||
+ | projectexportFile= " | ||
+ | projectexporteraseFile= " | ||
+ | Cellname = 'IC 1' | ||
+ | SelfbootThrough = ' | ||
+ | | ||
+ | status = server.SET_TIMEOUT(120) # 2 Min Needs update if erase or export of complete EEPROM | ||
+ | print(' | ||
+ | server.COMPILE_PROJECT | ||
+ | | ||
+ | print(' | ||
+ | # Arg1 - Cell name of SigmaDSP IC example: "IC 1" | ||
+ | # Arg2 - EEPROM port settings | ||
+ | server.SELFBOOT_PORT_SETTINGS(Cellname, | ||
+ | | ||
+ | print(' | ||
+ | # Arg1 - Cell name of SigmaDSP IC example: "IC 1" | ||
+ | # Arg2 - write through " | ||
+ | server.SELFBOOTWRITE(Cellname, | ||
+ | | ||
+ | print(' | ||
+ | # Arg1 - True for DSP, False for USB (USB currently not supported) | ||
+ | # Arg2 - Export file path | ||
+ | server.EXPORT_SELFBOOT_DATA(True, | ||
+ | | ||
+ | print(' | ||
+ | # Arg1 - Cell name of SigmaDSP IC example: "IC 1" | ||
+ | server.SELFBOOTERASE(Cellname); | ||
+ | | ||
+ | server.EXPORT_SELFBOOT_DATA(True, | ||
+ | | ||
+ | server.SAVE_PROJECT | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
===== IPAT Options ===== | ===== IPAT Options ===== | ||
===Write=== | ===Write=== | ||
Line 1818: | Line 1894: | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | The method is used to Write the values of the parameter to IPAT Address. | + | The method is used to Write / from Read the values of the parameter to/from IPAT Address. |
\\ | \\ | ||
\\ | \\ | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | Type & Name: int numOfBytesToWrite | + | Type & Name: int numOfBytesToWrite |
\\ | \\ | ||
<fc # | <fc # | ||
\\ | \\ | ||
- | Number of bytes in ' | + | Number of bytes in ' |
\\ | \\ | ||
\\ | \\ |