# Function: alu (by Gupta et al.) # Note: 4th line is function output. # a and b are inputs # c0 c1 c2 define the function (f) as follows: # 0 0 0 -> constant 1 # 0 0 1 -> a OR b # 0 1 0 -> -a OR -b # 0 1 1 -> (a AND -b) OR (-a AND b) # 1 0 0 -> (a AND b) OR (-a AND -b) # 1 0 1 -> a AND b # 1 1 0 -> -a AND -b # 1 1 1 -> constant 0 # This file have been taken from RevLib (www.revlib.org). .version 1.0 .numvars 5 .variables a b c d e .inputs c0 c1 c2 a b .outputs g g g f g .constants ----- .garbage 111-1 .begin ---1- ---1- ---1- ---1- ---0- ---1- ---1- ---1- ---1- ---1- ---1- ---0- ---0- ---1- ---1- ---0- ---1- ---0- ---0- ---1- ---0- ---0- ---0- ---1- ---1- ---0- ---0- ---0- ---0- ---0- ---0- ---0- .end