## 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 indexer_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* 2010 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 of threads to use; a range of the form low[:high] where low and optional high are non-negative integers, or 'auto' for the TBB default.
  verbose print diagnostic output to screen
  silent limits output to timing info; overrides verbose
To run a short version of this example, e.g., for use with Intel® Parallel Inspector:
  Build a debug version of the example (see the build directions).
  Run it with the desired number of threads, e.g., `test_all 4`.

Up to parent directory

Copyright © 2005-2015 Intel Corporation. All Rights Reserved.

Intel is a registered trademark or trademark of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.