Name Date Size #Lines LOC

..12-Feb-2024-

CMakeLists.txtH A D12-Feb-20241.1 KiB3425

D_latch.hppH A D12-Feb-20242.6 KiB6946

README.mdH A D12-Feb-2024967 2420

basics.hppH A D12-Feb-202422.4 KiB745653

four_bit_adder.hppH A D12-Feb-20243.3 KiB8459

one_bit_adder.hppH A D12-Feb-20243.7 KiB12091

test_all.cppH A D12-Feb-202424.9 KiB768670

two_bit_adder.hppH A D12-Feb-20242.6 KiB6845

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