Overview

This directory contains a simple tbb::flow example that performs simplistic digital logic simulations with basic logic gates that can be easily composed to create more interesting circuits. It exemplifies the multifunction_node and the or_node CPF, among others.

Files

basics.h
Several I/O devices and basic gates.
one_bit_adder.h
A one-bit full adder composed of basic gates.
four_bit_adder.h
A four-bit full adder composed of one-bit adders.
D_latch.h
A D-latch composed of basic gates.
test_all.cpp
A simple test program that exercises the code in the headers.
Makefile
Makefile for building example.

Directories

msvs
Contains Microsoft* Visual Studio* 2008 workspace for building and running the example with the Intel® C++ compiler (Windows* systems only).
xcode
Contains Xcode* IDE workspace for building and running the example (OS X* systems only).

To Build

General build directions can be found here.

Usage

test_all -h
Prints the help for command line options
test_all [#threads=value] [verbose] [silent] [#threads]
#threads is the number