Dec 282017
Truth Table Generator – Generates a truth table for a Boolean function in ASCII form. Written in TurboC (source included) – converted from a BASIC program which appeared in EDN (Electronic Design News). | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
INPUT.DAT | 15 | 15 | stored |
INPUT2.DAT | 10 | 10 | stored |
OUTPUT.DAT | 54 | 17 | deflated |
README | 1579 | 723 | deflated |
TRUTH21A.C | 8373 | 2693 | deflated |
TTG.EXE | 13616 | 8321 | deflated |
TTG.PRJ | 11 | 11 | stored |
TTGKEY.FIL | 32 | 23 | deflated |
Download File TTG.ZIP Here
Contents of the README file
Truth Table Generator
Version: 2.10a
The Truth Table Generator generates a truth table from an input
file which contains a Boolean function and writes the table to a
specified output file. This program was converted to C from a
BASIC program which appeared in EDN magazine June 23, 1982, page
200. The output is compatible with the MINTEX minimization
program (not provided). The format of the input file is simply an
ASCII file in the form of a Boolean equation. The maximum length of
the function is 250 characters. Valid characters are:
OPERATORS: Function Operator
------------------------------
NOT - (minus sign)
AND . (period)
OR + (plus sign)
XOR @ (at sign)
VARIABLES: {A-Z} (up to 26 variables)
PARENTHESES: '(' ')'
Other characters will not affect the results of the program, but
they will generate a messages indicating that an unrecognized
character was encountered.
Several example files are included. INPUT.DAT and INPUT2.DAT
are example input files. OUTPUT.DAT is an example output file which
corresponds to INPUT.DAT. TTGKEY.FIL is an example key stroke file
and may be used to run the program using indirection. For example,
type:
TTG < TTGKEY.FIL
The Truth Table Generator will automaticly use file INPUT.DAT to
generate a truth table in file OUTPUT.DAT.
Version: 2.10a
The Truth Table Generator generates a truth table from an input
file which contains a Boolean function and writes the table to a
specified output file. This program was converted to C from a
BASIC program which appeared in EDN magazine June 23, 1982, page
200. The output is compatible with the MINTEX minimization
program (not provided). The format of the input file is simply an
ASCII file in the form of a Boolean equation. The maximum length of
the function is 250 characters. Valid characters are:
OPERATORS: Function Operator
------------------------------
NOT - (minus sign)
AND . (period)
OR + (plus sign)
XOR @ (at sign)
VARIABLES: {A-Z} (up to 26 variables)
PARENTHESES: '(' ')'
Other characters will not affect the results of the program, but
they will generate a messages indicating that an unrecognized
character was encountered.
Several example files are included. INPUT.DAT and INPUT2.DAT
are example input files. OUTPUT.DAT is an example output file which
corresponds to INPUT.DAT. TTGKEY.FIL is an example key stroke file
and may be used to run the program using indirection. For example,
type:
TTG < TTGKEY.FIL
The Truth Table Generator will automaticly use file INPUT.DAT to
generate a truth table in file OUTPUT.DAT.
December 28, 2017
Add comments