90 likes | 223 Views
CAFE: Connection Arrays From Equations A Quick Tutorial. ECE 352 Prepared By Ed Brann CAFE User Manual in Course Material Packet from Bob’s Copy Shop. What is CAFE?. Boolean Logic Minimization Program Possible Relevant Inputs Boolean Functions Minterms Truth Tables
E N D
CAFE:Connection Arrays From EquationsA Quick Tutorial ECE 352 Prepared By Ed Brann CAFE User Manual in Course Material Packet from Bob’s Copy Shop
What is CAFE? • Boolean Logic Minimization Program • Possible Relevant Inputs • Boolean Functions • Minterms • Truth Tables • Cubes (Tabular or Quine-McCluskey Method) • Possible Relevant Outputs • Same as Inputs
CAFE Syntax • Case Sensitivity • “ab” is different from “Ab” • Every line must end in a comma or a period. • All characters beyond the comma or period on a line are considered as comments. • Blank lines are ignored.
Two Sections of a Typical CAFE Text File • Specification Block • Tell CAFE what you have. • Process Block • Tell CAFE what you want.
Specification Block • <equation> Boolean Equations • <arrays> Cubes for Tabular Method • <minterms> Minterms • <xterms> Maxterms • <tables> Truth Tables
Process Block • Consists of • CAFE Commands • Output Variables • Example: • e w ~w. • Finds equations for w and w.
Command Line Syntax • At the prompt type “cafe input_file” • Output will print to screen. • If errors are found, edit input_file and correct. • To print the output to a file, type “cafe input_file > output_file”
Two Examples • Example 1: minterm.txt • Given: Minterms for two functions. • Find: Equations for the two functions. • Example 2: truth.txt • Given: A boolean function. • Find: The truth table for this function.