Calculator
Reference Manual
Version Y-2006.06, June 2006
Saber is a registered trademark of SabreMark Limited Partnership and is used under license.
Disclaimer
SYNOPSYS, INC., AND ITS LICENSORS MAKE 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.
Registered Trademarks ()
Synopsys, AMPS, Cadabra, CATS, CRITIC, CSim, Design Compiler, DesignPower, DesignWare, EPIC, Formality, HSIM,
HSPICE, iN-Phase, in-Sync, Leda, MAST, ModelTools, NanoSim, OpenVera, PathMill, Photolynx, Physical Compiler,
PrimeTime, SiVL, SNUG, SolvNet, System Compiler, TetraMAX, VCS, and Vera are registered trademarks of Synopsys,
Inc.
Trademarks ()
Active Parasitics, AFGen, Apollo, Astro, Astro-Rail, Astro-Xtalk, Aurora, AvanTestchip, AvanWaves, BOA, BRT,
ChipPlanner, Circuit Analysis, Columbia, Columbia-CE, Comet 3D, Cosmos, CosmosEnterprise, CosmosLE,
CosmosScope, CosmosSE, Cyclelink, DC Expert, DC Professional, DC Ultra, Design Advisor, Design Analyzer, Design
Vision, DesignerHDL, DesignTime, Direct RTL, Direct Silicon Access, Discovery, Dynamic-Macromodeling, Dynamic
Model Switcher, EDAnavigator, Encore, Encore PQ, Evaccess, ExpressModel, Formal Model Checker, FoundryModel,
Frame Compiler, Galaxy, Gatran, HANEX, HDL Advisor, HDL Compiler, Hercules, Hercules-II, Hierarchical Optimization
Technology, High Performance Option, HotPlace, HSIMplus, HSPICE-Link, iN-Tandem, Integrator, Interactive Waveform
Viewer, i-Virtual Stepper, Jupiter, Jupiter-DP, JupiterXT, JupiterXT-ASIC, JVXtreme, Liberty, Libra-Passport, Library
Compiler, Libra-Visa, Magellan, Mars, Mars-Rail, Mars-Xtalk, Medici, Metacapture, Milkyway, ModelSource, Module
Compiler, Nova-ExploreRTL, Nova-Trans, Nova-VeriLint, Orion_ec, Parasitic View, Passport, Planet, Planet-PL,
Planet-RTL, Polaris, Power Compiler, PowerCODE, PowerGate, ProFPGA, ProGen, Prospector, Raphael, Raphael-NES,
Saturn, ScanBand, Schematic Compiler, Scirocco, Scirocco-i, Shadow Debugger, Silicon Blueprint, Silicon Early Access,
SinglePass-SoC, Smart Extraction, SmartLicense, Softwire, Source-Level Design, Star-RCXT, Star-SimXT, Taurus,
TimeSlice, TimeTracker, Timing Annotator, TopoPlace, TopoRoute, Trace-On-Demand, True-Hspice, TSUPREM-4,
TymeWare, VCS Express, VCSi, Verification Portal, VFormal, VHDL Compiler, VHDL System Simulator, VirSim, and
VMC are trademarks of Synopsys, Inc.
Chapter 1.
Chapter
1-1
Pulldown Menus
Icon Bar
Entry Field
Stack Display
Programmable Buttons
Extended Operation Buttons
Keypad
1-2
Entering Operands
The calculator keypad, your computer keyboard, and your computer numeric
keypad can all be used to input operands.
The Entry field is where numbers or waveforms appear and are evaluated
before being pushed onto the Stack Display. The contents of the Entry field are
always the same as that of the X-register.
The Stack Display is a scrollable list box that displays the stack registers.
There is no limit to the number of stack registers.
To copy any register onto the X-register
Single click on the register with the left mouse button, and then single
click the middle mouse button.
1-3
The X-register will be the Entry field and register one in the Stack Display if
only one operand has been input and the Enter button has been pressed.
Press enter
(The Entry field and
register one are the
X-register)
The X-register will be the Entry field, and the Y-register will be register one, if
a second operand is input and the Enter button has not been pressed.
input 6
(6 is the X-register, 25 is
the Y-register.)
The X-register will be the Entry field and register one in the Stack Display, and
the Y-register will be register two, if a second operand is input and the Enter
button has been pressed.
Press enter
(The Entry field and
register one are the
X-register, register two is
the Y-register)
1-4
Press enter
(25 is pushed onto register
one)
input 6
(6 is displayed in the Entry
field)
1-5
Press 1/x
(The inversion
operation is
performed on the
operand, and the
result is pushed
onto the X-register)
1-6
Press =
(The subtraction operation
is performed in the Entry
field, and the result is
pushed onto the
X-register)
One Operand Algebraic Example
For example, to calculate the inverse of 25, follow these steps:
Press 1/x
(The operation with an
open bracket is displayed
in the Entry field)
Input 25
(25 is placed in the
operation bracket)
Press =
(The brackets are closed,
the inversion operation is
performed on the Entry
field, and the result is
pushed onto the
X-register)
1-7
1-8
[finitelimit ]
f(x)
[yvsx ]
[xyswap ]
Reduce dimension
[flatten ]
CosmosScope Calculator Reference Manual
The name of the file to be acted upon by the function must be placed within
the brackets, followed by a space, immediately after the function name. For
example, if the waveplot file is named filt_out, then in order to apply f(x) to
filt_out, first choose f(x) on the Wave menu, and then place filt_out in the
brackets, as follows:
[yvsx filt_out]
Algebraic Mode
1-9
Press enter
(The vma string is converted
to an AIM representation
and pushed onto the
X-register).
1-10
Using Constants
The calculator provides a Constants dialog box containing a list of
mathematical and physical constants. You can also create your own set of
constants. The icon for constants is
.
To open the Calculator Constants dialog box
Single click on the Constants icon. Mathematical constants are listed
under the math tab, physical constants are listed under the physical tab,
and any user created constants are listed under the user tab.
For additional information about any constant
Select the constant with a single click and press the calculator Help
button.
To input a constant into the calculator
Double click on the constant, or select the constant with a single click,
and press the OK button.
To create a User Constant
Click on the User tab to display the User tab form.
Single click the Add button. The Add User Constant dialog box opens
with instructions for creating a user constant with a custom Help
message.
The format for adding a constant is the constant name, constant value,
and a brief description of the constant (or whatever you choose to put in
the help text string).
(<name>=<value>;<help_text>).
1-11
Selecting the constant and clicking on the calculator Help button will
display the following:
coulomb: 6.24E+18, number of electrons
in a coulomb
1-12
Input the operation you want the menu item to perform in the Equation
field. Operations must be written in the AIM language.
Valid equation examples are given below:
sin($x)
sin($x)+cos($x)
sin($x)+cos(exp($y))
deriv(log($x-$z-$signal))
$var1 + $var2
[Measure:Frequency $wf]+20
13/27
Your equations should adhere to the format of these examples.
1-13
The dollar sign indicates an input to the function. Any number of inputs
may be specified. Any combination of letters and numbers may be used
for input names.
You may use any available AIM math function. AIM procedures may
also be used, as the [Measure:Frequency $wf]+20 example shows,
providing the procedure returns a number or a waveform.
Choose the location of your new menu item in the Menu field. You can
place a new menu item under any button from P1 through P6. You can
also place multiple menus under a single button.
Press the Add button to add the item to the calculator.
To save user-defined functions between sessions
Press the Close button to save your information and exit the Edit User
Functions dialog box.
User-defined functions are treated as preferences. You must use the File
> Preferences > Save item.
To close the dialog box without saving your program
Press the Cancel button.
To delete a function
Press the Remove button.
To edit an existing function
Single click on the down arrow at the right of the Name field in the Edit
User Functions dialog box. A list of functions will be displayed.
Select the function you would like to edit.
Make changes in the Name and Equation fields or P1 - P6 buttons as
necessary
Click on the Add and Close buttons to save changes.
1-14
Calculator Menus
File Menu
Edit Menu
Preferences Menu
File Menu
Menu Item
Description
Add Function
Save X
Save Selected
Save All
Close Window
1-15
Edit Menu
Menu Item
Description
Cut
Copy
Paste
Preferences Menu
1-16
Menu Item
Description
rpn
algebra
degrees
radians
grads
engineering
scientific
fixed point
Precision >
decimal
octal
hexadecimal
Help Menu
Menu Item
Description
Help on Calculator
About AimCalc
Calculator Icons
Icon
Description
Graph
Up
Down
X:Y
Clear X
Constants
Add Function
Input Mode
1-17
Icon
Description
Trigonometric Mode
vma Menu
Wave Button
Cmplx Button
Logic Button
Trig Button
Stack Button
Misc Button
Operation
Description
abs
mod
x modulo y.
fmod
ceil
floor
round
hypot
The square root of the sum of the square of the X-register and
the square of the Y-register.
vma
1-18
VMA Menu
Operation
Description
vmax
vmaxi
vmin
vmini
mean
sum
var
variance
specvariance
Wave Button
Operation
Description
FFT
IFFT
Limit X Range
1-19
Operation
Description
Limit X and Y Range Limits the range of the x and/or y axes of the
waveform in the X-register.
1-20
Limit to Finite
Values
Change X and Y
View
Sample X Axis
f(x)
Histogram
Extract Member
Swap Parameters
Reduce Dimension
Group Delay
Phase Delay
Concat
Cmplx Button
Operation
Description
complex
real
imag
mag
Absolute magnitude.
db
Decibels.
phase
cphase
phasedeg
cphasedeg
conjugate
polar
Logic Button
Operation
Description
y or x
y and x
y xor x
not x
1-21
Operation
Description
y<<x
y>>x
y<x
y<=x
y>x
y>=x
Trig
1-22
Operation
Description
sin
cos
tan
asin
acos
atan
atan2
sinh
cosh
tanh
Stack
Operation
Description
Clear All
Clear Selected
Clear X
Rename X
Copy X
Swap X and Y
Roll Up
Roll Down
Calculator Keypad
Button
Description
integ
deriv
eex
Exponent 10x.
Left parentheses.
Right parentheses.
exp
Natural exponential.
lnx
10^x
log10
x^2
1-23
Button
Description
sqrt
pow
1/x
1 divided by X.
+/-
Decimal point.
close
pi
<-
enter
In RPN mode only, evaluate the X-register and push the result
onto the stack.
Description
Return
Enter
Numeric Keypad
Up Arrow
Down Arrow
Left Arrow
Right Arrow
Escape
Help
1-24
Key
Description
F1
Tab
Delete
Back Space
1-25
1-26
Index
B
Basic Algebraic Operation 1-6
Basic RPN Operation 1-3
L
Logic Button 1-21
M
C
Calculator Computer Keyboard
Operation 1-24
Calculator Extended Operation
Buttons 1-18
Calculator Icons 1-17
Calculator Keypad 1-23
Calculator Menus 1-15
Cmplx Button 1-21
Complex Number - Algebraic Mode Example 1-10
Complex Number - RPM Mode Example 1-9
Constants Example 1-12
O
One Operand Algebraic Example 1-7
One Operand Example 1-6
Opening and Closing the Calculator
1-1
P
Performing Waveform Calculations
1-8
Preferences Menu 1-16
Programming the Calculator 1-13
E
Edit Menu 1-16
Entering Complex Numbers 1-9
Entering Operands 1-3
Entering Vectors, Matrices, and
Arrays 1-10
R
RPN Mode Example 1-4
S
Stack 1-23
Trig 1-22
Two Operand Algebraic Example 1-7
Two Operand Example 1-5
U
Using Constants 1-11
Index-1
Index
V
VMA Example 1-10
VMA Menu 1-19
W
Wave Button 1-19
Wave Extended Operation Button 1-8
Index-2
BOOKSHELF
OVERVIEW
Saber Examples User Guide
DESIGN - GENERAL
Saber Sketch User Guide
Saber Parts Gallery Reference Manual
Saber Property Editor Reference Manual
DESIGN - SPECIFIC
Saber Harness Quick Start
Saber Harness User Guide
Saber Sketch iQBus User Guide
SIMULATION
Saber Quick Start
Saber User Guide
Saber Simulator Command Reference Manual
Saber Simulator Guide Reference Manual
Saber HDL Command Reference Manual
Saber Netlist Options Reference Manual
Saber Simulator Real Time (RT) Interface
User Guide
Y-2006.06
ANALYSIS
CosmosScope Reference Manual
CosmosScope MATLAB Interface User Manual
Saber Simulator Testify Quick Start
Saber Simulator Testify User Guide
UTILITIES
CosmosScope Calculator Reference Manual
Saber and CosmosScope Command Line Tool
User Guide
Saber and CosmosScope Draw Tool User Guide
Saber and CosmosScope Hotkeys User Guide
Saber and CosmosScope Macro Recorder
User Guide
Saber and CosmosScope Report Tool
Reference Manual
Saber and CosmosScope StateAMS
Reference Manual
Saber Design Browser Tool Reference Manual
Saber Model Architect Tool User Guide
MODELING AND MODEL LIBRARIES
Saber Library and Model User Guide
Saber Managing Symbols and Models User Guide
Y-2006.06
Y-2006.06