Greenpak Designer User Guide
Greenpak Designer User Guide
Greenpak Designer User Guide
GreenPAK Designer
User Guide
Dialog Semiconductor
Corporate Headquarters
2560 Mission College Blvd
Santa Clara, CA 95054
USA
Phone: +1 408 845 8500
http://www.dialog-
semiconductor.com
Copyrights
Copyright © 2010-2020 Dialog Semiconductor. The information contained herein is subject to change without
notice. Dialog Semiconductor assumes no responsibility for the use of any circuitry other than circuitry embodied
in a Dialog product. Nor does it convey or imply any license under patent or other rights. Dialog products are not
warranted nor intended to be used for medical, life support, life saving, critical control or safety applications,
unless pursuant to an express written agreement with Dialog. Furthermore, Dialog does not authorize its products
for use as critical components in life-support systems where a malfunction or failure may reasonably be expected
to result in significant injury to the user. The inclusion of Dialog products in life-support systems application
implies that the manufacturer assumes all risk of such use and in doing so indemnifies Dialog against all charges.
GreenPAK Designer™, GreenPAK Programmer™ and GreenPAK™ are trademarks of Dialog Semiconductor. All
other trademarks or registered trademarks referenced herein are property of the respective corporations.
Any Source Code (software and/or firmware) is owned by Dialog Semiconductor (Dialog) and is protected by and
subject to worldwide patent protection (United States and foreign), United States copyright laws and international
treaty provisions. Dialog hereby grants to licensee a personal, non-exclusive, non-transferable license to copy,
use, modify, create derivative works of, and compile the Dialog Source Code and derivative works for the sole
purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction
with a Dialog integrated circuit as specified in the applicable agreement. Any reproduction, modification,
translation, compilation, or representation of this Source Code except as specified above is prohibited without the
express written permission of Dialog.
Disclaimer: DIALOG MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO
THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. Dialog reserves the right to make changes without further
notice to the materials described herein. Dialog does not assume any liability arising out of the application or use
of any product or circuit described herein. Dialog does not authorize its products for use as critical components in
life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to
the user. The inclusion of Dialog product in a life-support systems application implies that the manufacturer
assumes all risk of such use and in doing so indemnifies Dialog against all charges. Use may be limited by and
subject to the applicable Dialog software license agreement.
Contents
1. Introduction
1.1 Application Overview ............................................................................................................................ 5
1.2 System Requirements ......................................................................................................................... 5
1.3 Support ................................................................................................................................................ 6
1.4 Acronyms.............................................................................................................................................. 6
3. GreenPAK Designer
3.1 GreenPAK Designer Overview............................................................................................................. 8
3.1.1 Main Menu...................................................................................................................................... 10
3.1.2 Tool Bars........................................................................................................................................ 11
3.1.3 Work Area....................................................................................................................................... 13
3.1.4 Properties Panel............................................................................................................................. 14
3.1.5 Components List............................................................................................................................. 14
3.1.6 Color Scheme................................................................................................................................. 14
3.2 Creating a Project................................................................................................................................. 15
3.2.1 Updating Existing Projects.............................................................................................................. 15
3.2.2 Lock NVM Window......................................................................................................................... 15
3.2.3 Project Settings Window................................................................................................................. 16
3.3 Configuring Chip Components............................................................................................................. 17
3.3.1 Placing Components....................................................................................................................... 17
3.3.2 Setting Chip Components Parameters........................................................................................... 17
3.4 Specifying Interconnections.................................................................................................................. 18
3.4.1 Wire Types..................................................................................................................................... 20
3.4.2 Set/Erase Label.............................................................................................................................. 22
3.5 Specifying the Pinout ........................................................................................................................... 23
3.5.1 Port Connections............................................................................................................................ 23
3.5.2 Port Drive Modes............................................................................................................................ 23
3.6 Navigation............................................................................................................................................. 24
3.7 Keyboard commands............................................................................................................................ 24
3.8 GreenPAK Designer Settings............................................................................................................... 26
3.9 Legend Box.......................................................................................................................................... 28
3.10 Updating GreenPAK Designer............................................................................................................ 29
3.11 Help Window...................................................................................................................................... 30
3.12 Demo board and Demo mode............................................................................................................ 31
3.13 Snipping Tool...................................................................................................................................... 32
4. Print Function
4.1. Print Editor........................................................................................................................................... 33
4.2. Print Editor Preview Window................................................................................................................ 40
4.3. Print..................................................................................................................................................... 42
5. Rules Checker........................................................................................................................................... 43
8. GreenPAK Simulation................................................................................................................................ 84
9. Designing Overview
9.1. SLG46721 Properties Interpretation.................................................................................................... 92
A. Example Projects...................................................................................................................................... 126
B. Major features history ............................................................................................................................... 127
1. Introduction
This document describes the installation and usage of Dialog GreenPAK® Designer software. This software can
be used as a stand-alone application for the firmware development and for GreenPAK chips programming. If the
information in this guide is not sufficient to resolve issues experienced with GreenPAK Designer, refer to the
resources listed under the Support section.
Features that are common for GreenPAK 3 Designer, GreenPAK 4 Designer, GreenPAK 5 Designer and
GreenPAK 6 Designer are described in chapters with a GreenPAK Designer general name. The differences are
described in separate chapters.
GreenPAK Designer has an integrated programming tool that allows you to program configured design into your
GreenPAK chip. With this tool you can also read an already programmed chip and export its data to the Designer.
Designer will generate a project, which has the same configuration as chip.
To start working with GreenPAK Designer please take the following steps:
Download and install GreenPAK Designer software;
Select what components you need;
Interconnect and configure components;
Specify the pinout;
Test your design with the Emulation Tool;
Use appropriate GreenPAK development platform to program your project into GreenPAK chip. You can
find your kit on Dialog's webstore.
1.3 Support
Free support for GreenPAK is available online at http://www.dialog-semiconductor.com
Also click Help- > Social in GreenPAK Designer and get access to Facebook, Twitter, LinkedIn and Dialog TV.
1.4 Acronyms
These are the acronyms used in the User Guide.
3. GreenPAK Designer
This section describes GreenPAK Designer application and its features.
- Tools
Debug – this tool is included for convenient project testing;
Rules Checker – checks current design for correct settings;
Comparison – compares bits of two projects;
ASM Editor – allows to configure the State Machine using state diagram and set the output
configuration for SM Output block;
I2C Tools – enhanced I2C tools with I2C snapshot Reconfigurator (only in GreenPAK 5-6
Designer);
- Options
Settings – default projects folder, autosave, toolbars position, recovery, shortcuts and update
options;
- Help
Help – show help window;
User Guides – open User guides web page;
Legend box – show the color legend box;
Dialog web site – open Dialog official web site;
Software and documentation – open Software & Dock web page;
Dialog web store – open Dialog chip store;
Design support – web page with training courses and videos;
Contact Us – web form with request;
Social – Dialog Semiconductor in social networks;
Application Notes – open examples web page;
Datasheet – open documentation web page;
Updater – open GreenPAK update tool;
About GreenPAK Designer – show information about GPD versions modification.
3.1.2. Tool-bars
Toolbar provides a quick access to frequently used functions. There are 8 tool-bars:
- File
New;
Open;
Save;
Print;
- Undo
Undo;
Redo;
- Wire
Set wire;
Erase Wire;
- Label
Set Label;
Erase Label;
- Item editor
Rotate Left;
Rotate Right;
Flip Horizontal;
Flip Vertical;
Align Horizontal;
Align Vertical;
- Tools
Rules Checker;
Debug;
ASM Editor (only in GreenPAK 5-6 Designer);
Project Settings;
Project Info;
- Panel switcher
Properties;
Components;
NVM Viewer;
- Navigation
Zoom slider – adjust scale;
Zoom 1:1;
Fit work area;
Full screen mode;
Pan mode;
Show item hint;
To create a new GreenPAK Designer project start GPD Launcher or go to File->New or click the “New” icon
on the toolbar. While creating new project in GreenPAK Designer please choose chip revision for current project
and specify operating conditions – VDD and Temperature.
A new project will be created in current window and all unsaved changes will be lost. Also you can start a new
GreenPAK Designer copy and it will be loaded with the blank project. By default the project is configured for
minimal power consumption and some components are disabled. All disabled components are darker and colored
in red after selection. GreenPAK 3-6 projects use [.hvpak,.gp3,.gp4,.gp5,.gp6] file extension. It contains
information about position, rotation/flipping and configuration of chip blocks, all wire connections, and bit file
sequence settings of test mode, etc. Interface settings will not be saved in the Project file.
Lock status – blocks NVM reading. A programmed project becomes unavailable for chip reading. Though chip is
still applicable for the emulation.
Pattern ID – gives an ID (1-255) to the project. The ID will be put in the chip after programming, and also will be
read back during “chip reading” operation.
GPIO quick charge – this option will temporarily enable 2k resistor for ~1μs duration in parallel to internal
pull-up/downs during power on, before reset signal is released to internal blocks. For example, this option should
be used to ensure the internal pull-up rise-time is fast enough to be detected as high level during power-on.
Otherwise, a rising edge with weak internal pull-up can be quite slow, and miss detection as a high-level because
of too slow of risetime.
Lock status – blocks NVM reading/writing. A programmed project becomes unavailable for chip reading or for chip
writing via I2C Tools for chips with I2C Serial Communication (see chip datasheet). The chip is still applicable for
emulation.
Pattern ID – gives an ID (1-254/65534) to the project. The ID will be put in the chip after programming, and also
will be read while “chip reading” operates.
Reset connections and/or settings to default: this option allows to reset NVM bits, components properties, wire
connections from/to component.
Set wire on the Wire toolbar or from the main menu. Next, click the first and second pins that you want
to connect. After selecting the first pin, GPD highlights allowed connections in green. If you click the first pin and
then decide to exit line creating mode press Esc or the right mouse button.
Figure 3-9.
Figure 3-10.
Figure 3-11.
In order to create additional points on the line use the double click (Figure 3-12).
Figure 3-12.
Only the green color pins can be connected Using Wire Creating tool. Some components have pins that are not
allowed to be connected using wiring tool. Connections between such pins (orange dotted line and violet pin
color) and buses can be made only by changing settings in Connections section of the Properties panel of
proper components. In this case violet pins can change color to green and user can connect them using wiring
tool. Orange wires will be automatically generated. Orange wires also can be modified by user. Input pins without
connections are considered to be tied to ground.
In order to delete wire please select Erase wire at the Wire tool-bar and click on the selected wire.
Only green wires can be deleted.
Move network
Move network feature provides the fastest way to reconnect all matrix wires from any pin to another. Simply click
on wire with right mouse button and select Move network in Context menu
Select new source from list in Move network window. User can select new source only from list of visible blocks or
from list of all blocks.
Green lines in GreenPAK Designer software tools are used to mark manual wires. Using them you can manually
connect necessary blocks to operate in the desired way. You can connect block output to multiple inputs, but
wiring of different outputs to one input is impossible.
Orange lines are used to mark the internal functional bounds of the chip blocks. They do not have the impact on
chip operation until the proper function is used. These lines can’t be erased.
Bold orange lines (like the orange lines) mark the internal bounds. The difference is that the bold orange lines
mark 8-bit parallel data buses. These lines also cannot be erased. They do not have an impact on chip operation
until the proper function is used and the proper option is set.
Light green lines are used to mark the shared connections. Their behavior is the same as the green lines.
Using Set/Erase Label the user can add/delete text label. The Set Label tool adds a text label to the selected
component or without connecting them to the specific component. The user can Attach label to component or
Detach label(s) from component(s). If no component is selected, then the user can select a component from the
list offered by the Set Label tool. The user can also choose text color. If the selected component already has a
label, Set Label tool can edit label text. If the user selects more than one component, it is possible to change the
text color without changing text in all components at once. If the user changes the text while more than one
component is selected, it will be changed on all selected components at once as well. Erase Label deletes text
label.
GreenPAK chips have GPIO, GPO and GPI pin components. These components can be configured to work in the
following modes:
Digital in with Schmitt trigger;
Digital in without Schmitt trigger;
Low voltage digital in;
1x push pull;
2x push pull;
1x open drain NMOS;
2x open drain NMOS;
4x open drain NMOS;
1x open drain PMOS;
2x open drain PMOS;
1x 3-State Output;
2x 3-State Output;
Analog input;
Analog output;
Also, Pull-Up/Pull-Down resistors are configurable. To configure the pin component, open its parameters to set a
desired mode and pull-up/pull-down resistor. I/O pin components have input (IN), output (OUT) and output
enable (OE) pins. These pins are one-way directed, so you need to configure the pin component and connect the
proper pin. OUT pin is an output signal from the pin component. It corresponds to the signal from the input buffer.
IN pin is an input to the pin component. It accepts a signal from internal components. Output Enable (OE) signal
defines the Push-pull buffer state. Low OE signal switches buffer to Hi-Z state. High OE signal enables Push-pull
buffer regardless of selected component operating mode. It could be used for applications where bidirectional pins
are needed.
3.6 Navigation
To navigate through project workspace use the View menu or toolbar. Use Zoom In , Zoom Out
buttons or slider to zoom workspace. If you want to see all project components click on Fit work area or
Zoom 1:1 . To navigate through work area you can use Pan mode . Pan mode also activates by
using middle mouse button.
To enable block's hint, press Show item hints button. A hint box pops up next to the item when the mouse
moves over the block.
To navigate through GreenPAK Designer use specific keyboard commands or shortcuts. List of commands
specified in the table:
All other Designer main window actions can be configured by entering specific key sequence in Settings window
on Shortcuts tab. For ASM Editor user should enter key sequence in format: Ctrl+key.
GreenPAK Designer settings configure all basic options of program in several tabs (Figure 3-21). To open settings
select Options-> Settings in main menu.
General:
• Default projects folder – defines path to users GPD project files;
• Projects recovery – activates autosave function, which allows to reduce the risk or impact of data loss in
case of a crash or freeze. Autosave function in predetermined time intervals will save your files and after
a critical problem will offer to restore these files in GreenPAK Designer Launcher on Projects files
recovery tab (Figure 3-22);
Designer:
• Pin hints – shows pin hints while block is selected or properties panel of component is visible:
• Look-Up Table (LUT) – allow usage of regular shape by default. For example, regular shape of NXOR:
Appearance:
• Window appearance – saves positions of toolbars/dock widgets and window geometry of GP Designer
work area;
• High DPI displays – enables GP Designer scalling on high DPI displays;
Shortcuts:
• On Shortcuts tab all GP Designer actions can be configured by entering specific key sequence. For ASM
Editor user should enter key sequence in format: Ctrl+key;
Updater:
• Scheduler – determines check for updates time: after Designer starts or Once per 1-7 days;
• Path – defines server for update and destination to download updates;
• Proxy – allow user to configure proxy for updates;
• Check configuration button – checks connection to server.
Default button:
• Resets settings to default parameters by categories or all at once.
• You can also find the latest GPD version at Software page of Dialog web site. For the best user
experience, keep your GreenPAK Designer up to date. Feel free to email suggested updates to the
developer to improve this program (Please refer to “About GreenPAK ” section of Help menu).
Configure Updater options on Updater tab in Designer Settings window (see Section 3.8 GreenPAK Designer
Settings)
Demo board
Demo board is a special hardware with a mission to demonstrate some specific application of GreenPAK chip.
They have GreenPAK chip soldered on the board, already programmed with some specific project. They also
support I2C transferring that allows Designer to communicate with GreenPAK chip and change it NVM.
The exception is I2C Bridge which doesn’t have specific project and allows any project to be loaded in.
After Proper Demo board detected (Figure 3-27), simple I2C tool activated:
Snipping Tool is screenshot tool for GreenPAK Designer workarea. It allows scene selection, copying or saving as
a file.
Click Tools → Snipping Tool, select style of screenshot area (Figure 3-28)
Figure 3-28. Snipping Tool window with style selection
Select area and copy to clipboard or save image in Bitmap/PNG/SVG format (Figure 3-29)
Figure 3-29. Snipping Tool window: export selection
4. Print Function
4.1. Print Editor
Print Editor feature consists of two main parts:
Editable working area, where the user can customize positions, view of components, and lines
connecting them.
Preview window where the user can set up the print preferences.
Editable working area shows all components which where used in the design.
Note: print editor settings will be saved before print editor's window is closed. It allows the user to repair previous
state during next opening.
User can move lines and points to correct odd angled appearance.
Figure 4-4. Work sheet.
Working area
Working area can be zoomed in or zoomed out.
User can add a text label to the schematics using the text tool.
Figure 4-5. Text Label
The user can add to the working area the custom figures including rectangle, rounded rectangle, ellipse etc.
You can see a small preview window which includes a painted rectangle with user-parameters.
When the user adds a figure to the working area, one can customize the figure size by dragging black points on
the corners and sides. The user can view it only by moving the mouse pointer up to the figure.
The user can save a composed diagram into a graphics file or directly send it to the printer.
Main Actions
The user can:
• Choose orientation of the diagram on a paper (landscape or portrait)
• Fit the diagram to a page or keep the real size
• Fit to center
• Zoom in or zoom out
• Choose the size or type of paper
• Save the finished diagram into a PDF/Image file or print it out
4.3. Print
Print window shows the composed and ready-to-print diagram with block properties and its values. In this window,
the user cannot change the position of the components or the other elements in the diagram. The user can only
choose the advanced settings for printing or saving to the file.
Print options:
• Choose orientation of the diagram on a paper (landscape or portrait)
• Fit diagram to center
• Zoom in or zoom out
• Choose the size or type of paper
• Save the finished diagram into a PDF/Image file
• Print diagram and block properties
5. Rules Checker
This tool allows checking current project errors, for example, incorrect block connections or settings. Rules
Checker has three types of messages:
- this message is generated when there is a significant error in design that will not work under any
conditions.
- this message is generated when one or more blocks may contain incorrect connections or settings in
the design. This does not mean that there is an error. It only notifies the user to check the connections or settings
of the blocks.
- this message is generated to remind the user to check for correct settings.
In order to check the design, click the Rules Checker button on the tool bar in Tools menu.
Rules Checker Window can be called by clicking Rules checker output in View menu.
Rules checker output consists of three parts:
1. Event – shows message type (Fail, Warning, Note).
2. Rule – information about the message.
3. Note – recommendations on how to correct the error or error explanation.
Debug
Debug button starts Debug tool in GreenPAK Designer (Figure 6-1). The Debug tool enables electronic circuit
emulation and chip programming, which uses specific hardware platform to replicate the behavior of chip
components included in GreenPAK. Before starting the emulation process, add test points controls to configure
the emulation process.
• Add control to TP with Add button on Debug panel (Figure 6-4). List of available controls on TP: Signal
generator/Logic generator/VDD/GND/Button/Pull up/Pull down.
Figure 6-10. Buffered LED, Buffered LED+Pull Up, Buffered LED+Pull Down
The default connection can be set to either Upper connection or Bottom connection. Click your mouse over the
key U or B to change the value.
The user can configure each connection to VDD/GND, High-Z or Pull Up/Down.
The switch has 2 modes: Latched, Unlatched, which can be configured from the context menu or click your mouse
over the key LATCH to change the value.
User can assign Hot Key for 'Push' action. The assigned key will simulate mouse click over the key:
User can assign the same hot key to other Switches which allows changing the key values of all the Switches with
the same hot key at once.
6.2. Generators
To defined TP can be connected 3 types of generators: Logic generator, Signal generator or I2C generator. User
can add generator with Add button to highlighted green pins or use context menu of the TP.
Each generator has its own settings. For the settings window to appear press the Edit button or double click on S
or L or SDA/SCL symbol at TP.
On the left, you can see the options table divided into 2 groups:
1. General – applied to all types of generators
2. Special for each generator
Start all generators with buttons at Debugging controls panel (Figure 6-16)
Note: these buttons can be controlled only by generators with an installed Global Linkage flag.
CUSTOM Mode
Configuration options:
Mode: Normal/Invert - signal mode
Pattern: 0 – low/ 1- high level - pattern of pulse levels
Repeat: One shot/Cyclic/Custom - repeat option
T/Level: - sets duration of level
Insert: - insert pulse before selected position;
Remove: - remove pulse from the selected position;
Levels count: - pulse count
I2C generator allows a user to make an I2C signals based on logic generators. There are two logic generators
combined together as SDA and SCL lines. User can combine predefined I2C primitives to generate the needed
waveform in an appropriate way and choose SCL frequency.
SCL
Generates SCL signal applicable for I2C. SCL signal is the special kind of logic generator applicable only for
board configuration. SCL is only 'read-only'. The SCL clock configured by choosing predefined frequency. The set
of those frequencies depends on the development platform.
SDA
Generates configured SDA signal applicable for I2C. SDA signal is the special case of logic generator applicable
for sending data via I2C. In Signal Wizard special editor shows sequence of commands. User can do some
actions in command editor:
• change SCL pin for selected SDA;
• change Speed of I2C clock;
• control resource meter;
• Change Slave Address for all commands in list;
• Clear list to basic commands: Start and Stop;
• add or remove commands by using +/- buttons;
• change command parameters;
• split Composite commands in sequence of Basic commands by using button “S”;
Figure 6-26. 'Edit' button or double click on SDA/SCL allows configuring the signal.
Configuration options:
SCL: Any available pin - selects pin to be the I2C clock channel
with defined frequency
Speed: 1-1000kHz - speed of I2C clock
Used resources: % - shows used resources after adding
commands to list
Change Slave Address hex - changes slave address in all commands
Clear - clears all commands from the list to Start
and Stop
Commands - list of I2C generator commands
Signal generator is used to generate analog signals: Constant Voltage level, Sine, Trapeze(Trapezoid), Logic
pattern and User-defined.
Logic and signal generators can be started/paused/stopped using orange buttons or through the context menu.
The user can also assign the hot keys for start/pause.
More than one generator can use the same hot button to start/pause at once. This is how to start more than one
generator at the same time.
Constant value:
U: - voltage level;
Sine settings:
Repeat: One shot/Cyclic/Custom - repeat option
Phase: Custom/0/Pi:2/Pi/3Pi:2 - φ0
Custom phase: - show phase in a radian
Amplitude: - amplitude
Zero offset: - zero offset
Period: - period
Frequency: - shows frequency
Data: - change signal using Custom Signal Wizard
Trapeze Settings:
Mode: Normal/Invert -signal mode
Umax/Umin -max/min voltage level
T1, T2, T3, T4 -duration of trapezoid
If T3 = 1 signal is a triangle.
If T3 = 1, T2 = 2 or T4 = 2 signal is a saw.
Configuration options:
Mode: Normal/Invert - signal mode
Levels adjustment: Standard/Custom - sets standard Umax/min for all levels or
U for each level
Umax/min: - Umax/min for all levels
Pattern: 0 – low/ 1- high level - pattern of pulse levels
Repeat: One shot/Cyclic/Custom - repeat option
T/Level: - sets duration of level
Insert: - insert pulse before selected position;
Remove: - remove pulse from the selected position;
Count: - pulse count
Remove Point: Removes selected point. Double-clicking on the point will also remove it.
Data panel: Turns on/off the data table. User can remove/change values for selected point or add new point
between two existing points.
User can insert points from another application and set separators options:
Decimal separator: point/comma;
Column separator: auto/tab(“\t”)/other;
Row separator: auto(line feed)/ tab(“\t”)/other;
Change platform:
Select type of hardware platform with supported features
Import configuration:
Allows user import configuration of test points from another platforms.
Device:
Allows user work with external chip on specified device address
I2C Reset:
If I2C serial communication is established with the device, it is possible to reset the device to initial power up
conditions, including configuration of all macrocells, and all connections provided by the Connection Matrix. This
is implemented by setting register I2C reset bit to “1”, which causes the device to re-enable the Power-On Reset
(POR) sequence, including the reload of all register data from NVM.
Emulation:
• Emulation - the current project will be loaded to the chip (but not programmed), and will be ready for test
on the hardware board.
• Emulation (sync) – in addition to Emulation, each change that is made in the project, will be immediately
loaded to the chip.
In the case when Int. VDD and VDD key on the Expansion connector are turned off, a warning message will pop
up (Figure 6-44).
Test mode:
Test mode is used for connecting or disconnecting the chip’s I/O pads to TP controls, configured by user.
Also, a user can check the programmed chip using the test mode without emulation. In order to do this: turn on
the test mode and internal VDD button. The test mode can work without power on the chip. User will control the
power manually.
Read:
Read chip using hardware board.
Program:
Program chip with the current project. For some chip models user can configure programming process by clicking
Programming options at Program button. Choose programming options:
• Program NVM - programs chip NVM;
• Program EEPROM - programs chip EEPROM;
Project Data:
The table of NVM and EEPROM(optionally for some chip) bits.
Pattern ID – gives an ID (1-255) to the project. The ID will be put in the chip after programming, and also will be
read back while in “chip reading” operation.
Lock status – blocks NVM reading/writing. A programmed project becomes unavailable for chip reading/writing.
Use current project’s sequence for Programming and Emulation process – user can choose to use current
project's sequence for programing and emulation process.
Use this sequence for Programming and Emulation process – user can choose current sequence for
programming and emulation process.
Reload from current project – user can load bit sequence from current project.
Clear – sets all bits to false.
Export – save data to text file.
Import – load data from text file.
Open in new Designer's window – open current bit sequence in new Designer’s window.
In GreenPAK Designer for chips with I2C Serial Communication new columns describes register flags in I2C tools
and NVM Data window:
- I2C Legend:
• Green – Supported;
• Yellow - Partly supported (operation is supported for some part of data block);
- I2C Operations:
• R - I2C Read;
• W - I2C Write;
Chip Details:
Show details about chip and board
Log:
Show log.
Blink:
Selected board blinks to notify its selection
Refresh button:
Refresh button updates chip information in bottom right corner of the Debug tool.
Socket Test:
This feature allows testing the socket connectors to ensure that it works properly and doesn't have influence on
emulation or reading/programming processes.
I2C Tools
Start Debug to start work with I2C tools:
The I2C Serial Communication Block (I2C) in the chip allows an I2C bus Master to read and write information via
a serial channel directly to the RAM registers. This allows the remote re-configuration of macro-cells. The user
has the flexibility to read and write registers not associated with NVM memory. Those registers are the signal
outputs of macro-cells in the device, giving the I2C bus Master the capability to remotely read the current value of
any macro-cell. Up to 16 GreenPAK I2C slave devices can share the same serial bus. You can choose any
external device address and work with external chip using Device selector in Debug tool: Onboard or any of 16
GreenPAK I2C slave devices:
The I2C cell also has dedicated registers (I2C Virtual Output bits) as well as dedicated arrays in memory (RAM
Array Table) only accessible through I2C. The I2C Virtual Outputs are also signals that enter the matrix. To start
I2C Tools Emulation or Test Mode is required.
I2C Tools has 3 separate windows:
I2C Virtual Inputs:
• Counters/Delays – the counter/delay data in the device can be read and write via I2C;
• I2C Virtual Inputs – the I2C Virtual Inputs OUT0-OUT7 value in the device can be read and write via I2C;
• Registers – the current value of all device registers can be read and write via I2C;
• Log – shows log of read/write operations.
• Probes (Matrix inputs) – the current level on blocks output pins in the device can be read via I2C. User
can add probes to any pin(or to all visible pins) or remove probe(or all probes);
• Counted Data – the current count value in some counters (see Datasheet for selected chip revision) in the
device can be read via I2C.
I2C Reconfigurator
Figure 6-51. I2C Reconfigurator
I2C Reconfigurator allows user to change data dynamically on chip by sending NVM snapshots into chip.
Snapshot of the NVM sequence saves configuration of macrocells and connections between macrocells. The user
can configure list of snapshots and send into the chip in two ways: send one by one or send all. Also delays
between snapshots can be added.
Snapshot configuration:
External chip
DIP/Advanced/Pro platforms
To start work with external chip for DIP, Advanced and PRO platforms:
1. Connect socket with External chip to Development Board via pins:
• Corresponding I2C pins (SCL, SDA);
• VDD pin;
• GND pin;
For DIP/Advanced Development board: connect socket with External chip to Expansion connectors pins:
DIP Expansion connectors:
For PRO Development board: connect socket with External chip to external port on GreenPAK PRO Development
Board (right connector):
2. Disconnect Onboard chip to proceed with the External chip (For DIP/Advanced/Pro platfroms)
3. Start GreenPAK Designer and select revision of connected External chip
4. Start Debug tool and select Development platform
5. Select Device address as 0001b (used by default for empty chip) or corresponding address programmed
to the chip.
Attention: if external socket properly connected to development board and proper Device address selected - chip
detects after clicking Update chip info button or automatically after starting any chip operation:
6. Now user can use all Debugging chip controls: Emulation/Test mode/Read/Program for external chip
Attention: Ext. VDD (Va) expansion should not be enabled if exist voltage on external VDD port. It automatically
disconnects while starting Emulation/Test mode operations for chip with existing external voltage with warning
message.
In-System Programmer
To start work with external chip on In-System Programmer platform:
1. Connect chip with wires to In-System Programmer pins (VDD, CLK, SDA, GND):
Transitions
The state machine is constructed by defining the one-way connections between two states gated by a transition
control input. The state machine will transition to another state any time these two conditions are met: the current
state has a transition connection to another state, and that transition enable signal is HIGH. The transition enable
signals are controlled by the 24 inputs, and there are 3 transition enable signals per state.
Outputs
The ASM block has 8 outputs to the connection matrix. You can define the output of the 8 outputs based on the
current state. This is done in the properties tab by double clicking the desired output for a given state and output
line to invert its output.
Initial/reset state
The ASM block will power up to the state defined as the Initial/reset state. It is by default State 0, but can be
changed to any state. It also defines which state the ASM will be reset to. When the logic on nRESET is LOW, the
ASM will be kept at the Reset state until the logic at nRESET goes HIGH.
ASM editor(figure 7-3) allows to configure the ASM block using state diagram and set the output configuration for
ASM Output block ASM configuration should be applied using Apply button on the toolbar to be set to the NVM.
States
State colors:
• Green: regular state;
• Blue: selected state;
• Red: initial (reset) state;
• Gray: state connections limit reached;
Move
State can be moved by dragging it’s central part using left mouse button. Dragging the border circle will have no
effect.
Context menu
• Edit name: set state’s name;
• Initial state: sets current state as initial;
• Hide: hides current state.
Transitions
Add/remove links
• To create new link turn on 'Set Link’ mode and click on the border circle of source state, then click
anywhere on state-destination or 'Esc’ to cancel;
• To erase link - turn on 'Erase Link’ mode and click on the link which should be erased.
Edit shape
Link’s shape sets automatically after states change their position. Modifying of the existing shape is available in
two ways:
• Simple edit: one-point editing by dragging the link;
• Flexible edit: two-points editing by entering in 'Edit path’ mode using link’s context menu;
Context menu
• Set Label: sets the text label onto link;
• Erase Label: removes the text label;
• Edit path: flexible two-point editing of link’s shape.
8. GreenPAK Simulation
Simulation Tools in GreenPAK Designer:
Software Simulation
The Software Simulation mode enables electronic circuit simulation, which uses mathematical models to replicate
the behavior of chip components included in GreenPAK and some external components. To start Software
Simulation click on Debug button and select Software Simulation in Development Platform Selector. Before
starting the analysis, use Schematic Library and Add Probes to configure the simulation environment parameters
as shown on Figure 8-2.
Click on component to add it to external I/O pin on chip (Figure 8-3). Voltage source(s) and GND added to
corresponded pins in chip by default. Components cannot be added to any internal macrocell. All components can
be configured from Properties panel after select or by double click on it as on Figure 8-5.
Component connects to external I/O pins with Set Wire tool. All available connections are highlighted with green
color as on Figure 8-4.
General
Internal resistance
Adds probes to block outputs which shows simulation results graphs over time. Probes are used to capture the
output signal from specific node. Probes can be added to the output from any pins, as well as the outputs for any
internal resource. User can add probes to all visible pins from context menu.
Remove Button
Transient Analysis settings in Debugging controls window define period of time for simulation, maximum time
step, source voltage and temperature (Figure 8-6). Note: If there is a change in the state of any probes, there will
be a step generated at that time, the “Maximum time step” variable will only insure that if no probe data changes
for this period, another step will be generated.
Software estimates the run time in three broad categories: green, yellow and red, based on sample points. As a
general rule, green runs will complete quickly (less than 10 secs), yellow runs within one min, and red takes
longer. Run time also varies based on the speed of your computer so the estimated times vary widely. Longer run
times will also require greater resources on your computer, including CPU and memory resources.
Note that it is possible to define simulation runs that will exceed the available resources on your computer, which
can potentially make your computer unstable. This may be true any time the estimated run time is categorized as
“red”.
To start simulation, in transient analysis window set required parameters and click OK. After simulation
performed, user will see Simulation results (Figure 8-7).
Simulation Results Window
b. It calls ‘Groups’, because each waveform after adding to the Group section becomes a group of 1
waveform. User can select multiple waveforms at the same time and add them as a new
group (Figure 8-8).
Action Hotkey
Markers and dt and dV parameters on plot widget showed in Figure 8-9 below:
In Waveforms window user can configure waveform and waveform base points parameters (style, color,
width/size):
9. Designing Overview
9.1. SLG4672x Properties Interpretation
Pin2
Only PINs 6, 15
2-Bit LUT
3-Bit LUT
Deglitch Filter
A. Example projects.
In the GreenPAK Designer Help menu, you can find a link to the Application Notes web page for selected chip
revision. There you can find fully configured examples which can help get your projects completed more quickly.
Each example has documentation that contains diagrams and descriptions.