README.md
1# Logic_sim sample
2This directory contains `oneapi::tbb::flow` example that performs simplistic digital logic simulations with basic logic gates that can be easily composed to create more interesting circuits.
3
4## Building the example
5```
6cmake <path_to_example>
7cmake --build .
8```
9
10## Running the sample
11### Predefined make targets
12* `make run_logic_sim` - executes the example with predefined parameters.
13* `make perf_run_logic_sim` - executes the example with suggested parameters to measure the oneTBB performance.
14
15### Application parameters
16Usage:
17```
18logic_sim [#threads=value] [verbose] [silent] [-h] [#threads]
19```
20* `-h` - prints the help for command line options.
21* `#threads` - 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 a platform-specific default number.
22* `verbose` - prints diagnostic output to screen.
23* `silent` limits output to timing info; overrides verbose
24