Equ Descriptions are ASCII files of Boolean equations you write with a text editor. The following is an example for a four bit adder.
net c1 c2 c3; s0 = a0 ^ b0 ^ cin; c1 = a0 & b0 | a0 & cin | b0 & cin; s1 = a1 ^ b1 ^ c1; c2 = a1 & b1 | a1 & c1 | b1 & c1; s2 = a2 ^ b2 ^ c2; c3 = a2 & b2 | a2 & c2 | b2 & c2; s3 = a3 ^ b3 ^ c3; cout = a3 & b3 | a3 & c3 | b3 & c3;
The line net c1 c2 c3 means that c1, c2 and c3 are internal nets. Everything else are then inputs and outputs. Signal names must start with a numeric character. Logical operators must have a space before and after them. The Boolean operators are: - for NOT, & for AND, for XOR and | for OR.
File Format: EQU
Options:
Library:work
Cell:design_name
View:equ
Files:design_name.equ
Where design_name is the name of your .equ file.
Optimization Type: Area
Area Optimization Options: Medium
Factor
Model Name: (leave blank)
GN Library Mapping: work eddm
select Generate Schematic