Docsity

Two-Level Logic Minimization Project: Implementing a Logic Minimization Tool - Prof. Susan, Study Guides, Projects, Research of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 574a Term Project: 2-Level Logic Minimization
Due December 6, 2006 (Wednesday) at 8:00 pm
Deliverables
• Logic minimization tool implemented in C
• Usage file indicating how to utilize the minimization tool
• 1-2 page description of your logic minimization implementation
Turnin
• Submit your project using electronic turnin, class_account_name is “ece474a”, assignment_name is “term574”
Project Description
The goal of this project is to implement a logic minimization tool that takes in a functional description of a n-input, 1-output two-level
Boolean logic function, optimize the function by reducing the size of the circuit, then output the optimized circuit.
Input File
The input file specifies the functionality of a two-level Boolean function. The logic function is described as a character matrix with
keywords embedded in the input to specify the size of the matrix, input and output variable names, and an optional end of file marker.
Keywords are specified in Table 1.
Table 1: Input file keywords.
# comment Comments are allowed within the input by placing a pound sign (#) as the first character on a line.
.i [d] Specifies the number of input variables, where [d] denotes a decimal number.
.o [d] Specifies the number of output functions, where [d] denotes a decimal number.
.ilb [s1] [s2] ... [sn] Gives the names of the binary valued variables. This must come after .i and .o. There must be as many tokens
fol lowing the keyword as there are input variables.
.ob [s1] [s2] ... [sn] Gives the names of the output functions. This must come after .i and .o. There must be as many tokens
following the keyword as there are output variables.
.e Optionally specifies the end of the file
The input file format is based on the input file format for ESPRESSO. Many other options exits for ESPRESSO, but we limit this project to
consider only the keywords listed in Table 1.
Example Input File 1:
# test1.txt
# F = a’b + ab’ + ab
# F = a + b (opitmized)
.i 2
.o 1
.ilb a b
.ob F
00 0
01 1
10 1
11 1
Example Input File 2:
pf3

Partial preview of the text

Download Two-Level Logic Minimization Project: Implementing a Logic Minimization Tool - Prof. Susan and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

ECE 574a Term Project: 2-Level Logic Minimization

Due December 6, 2006 (Wednesday) at 8:00 pm

Deliverables

  • Logic minimization tool implemented in C
  • Usage file indicating how to utilize the minimization tool
  • 1-2 page description of your logic minimization implementation

Turnin

  • Submit your project using electronic turnin, class_account_name is “ece474a”, assignment_name is “term574”

Project Description

The goal of this project is to implement a logic minimization tool that takes in a functional description of a n-input, 1-output two-level

Boolean logic function, optimize the function by reducing the size of the circuit, then output the optimized circuit.

Input File

The input file specifies the functionality of a two-level Boolean function. The logic function is described as a character matrix with

keywords embedded in the input to specify the size of the matrix, input and output variable names, and an optional end of file marker.

Keywords are specified in Table 1.

Table 1: Input file keywords.

comment (^) Comments are allowed within the input by placing a pound sign (#) as the first character on a line.

.i [d] (^) Specifies the number of input variables, where [d] denotes a decimal number.

.o [d] Specifies the number of output functions, where [d] denotes a decimal number.

.ilb [s1] [s2] ... [sn] (^) Gives the names of the binary valued variables. This must come after .i and .o. There must be as many tokens fol lowing the keyword as there are input variables.

.ob [s1] [s2] ... [sn] (^) Gives the names of the output functions. This must come after .i and .o. There must be as many tokens following the keyword as there are output variables.

.e (^) Optionally specifies the end of the file

The input file format is based on the input file format for ESPRESSO. Many other options exits for ESPRESSO, but we limit this project to

consider only the keywords listed in Table 1.

Example Input File 1:

test1.txt

F = a’b + ab’ + ab

F = a + b (opitmized)

.i 2 .o 1 .ilb a b .ob F

00 0 01 1 10 1 11 1

Example Input File 2:

test2.txt

F1 = w’x’y’z’ + w’x’y’z + w’xy’z’ + w’xy’z + wx’y’z’ + wx’y’z + wxy’z’ + wxy’z

F1 = w’ (optimized)

.i 4 .o 1 .ilb w x y z .ob F

0000 1 0001 1 0010 0 0011 0 0100 1 0101 1 0110 0 0111 0 1000 1 1001 1 1010 0 1011 0 1100 1 1101 1 1110 0 1111 0

Example Input File 3:

test3.txt

In this file we introduce do not care’s, these are specified in the input file

with a value of 2

a b c | out

---------+----

0 0 0 | *

0 0 1 | 1

0 1 0 | 1

0 1 1 | 1

1 0 0 | *

1 0 1 | 1

1 1 0 | 0

1 1 1 | 0

.i 3 .o 1 .ilb a b c .ob out

000 2 001 1 010 1 011 1 100 2 101 1 110 0 111 0

# remember the user has the option to use or not use the end of file marker

.e

Logic Minimization

Logic minimization is an active area of research, both in two-level logic minimization and multi-level logic minimization, with many exact

algorithms and heuristics available. You do not need to select a specific algorithm/heuristic and implement the algorithm/heuristic. Rather,

you will develop your own strategy in performing two-level logic minimization. Your implementation can be derived from previous work,

a combination of techniques, or a completely novel technique developed on your own.

In addition to the logic minimization tool, you will need to provide a 1-2 page description of you minimization technique. Specifically, how

does your tool perform the logic minimization, previous work your technique is based on, etc.