Skip to content

Commit 690708d

Browse files
authored
Merge pull request #71 from foss-for-synopsys-dwc-arc-processors/mli_dev
Release version 1.0
2 parents bbaea6a + 7c756db commit 690708d

25 files changed

+1669
-89
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ documentation and examples. Read the documentation at [embarc.org](https://embar
2121

2222
## Package structure
2323
--------------------
24-
./bin - directory holder for embARC MLI library and samples binaries created during build
25-
./build - contains common build rules
26-
./doc - contains the API documentation of the embARC MLI library
27-
./include - include files with API prototypes and types
28-
./lib/src - source code of embARC MLI Library
29-
./examples - source code of examples
30-
./examples/example_cifar10_caffe - example illustrating implementation of CIFAR10 Caffe
31-
./examples/example_har_smartphone - example illustrating implementation of Human Activity Recognition
32-
./examples/auxilary - source code of helper functions used for the examples
33-
./hw - contains HW templates (*.tcf files)
24+
/bin - directory holder for embARC MLI library and samples binaries created during build
25+
./build - contains common build rules
26+
./doc - contains the API documentation of the embARC MLI library
27+
./include - include files with API prototypes and types
28+
./lib/src - source code of embARC MLI Library
29+
./examples - source code of examples
30+
./examples/example_cifar10_caffe - example illustrating implementation of CIFAR10 Caffe
31+
./examples/example_har_smartphone - example illustrating implementation of Human Activity Recognition
32+
./examples/auxilary - source code of helper functions used for the examples
33+
./examples/tutorial_cifar10_caffe_deployment - model deployment tutorial for Caffe and CIFAR10
34+
./hw - contains HW templates (*.tcf files)
3435

3536
## Building and quick start
3637
---------------------------
@@ -90,12 +91,12 @@ Please be aware that the list of specializations is not guaranteed to be backwar
9091
## Frequently Asked Questions
9192
---------------
9293

93-
Q: Can I use ARC GNU tools to build embARC MLI library?
94+
***Q: Can I use ARC GNU tools to build embARC MLI library?***
9495
A: No you cannot. embARC MLI Library must be built by MetaWare Development Tools only. Read the documentation at [embarc.org]( https://embarc.org/embarc_mli/doc/build/html/getting_started/getting_started.html#build-library) for details
9596

96-
Q: Can I use MetaWare Development Tools Lite to pre-build embARC MLI library and ARC GNU to build example application?
97+
***Q: Can I use MetaWare Development Tools Lite to pre-build embARC MLI library and ARC GNU to build example application?***
9798
A: No you cannot. embARC MLI Library must be built by full version of MetaWare Development Tools. Binaries built with MWDT Lite are not compatible with ARC GNU Tools and full MetaWare Development Tools. Read the MWDT Lite documentation for details.
9899

99-
Q: I can not build and run example application for my Synopsys board (EMSK, IoTDK, etc), what I shall do?
100+
***Q: I can not build and run example application for my Synopsys board (EMSK, IoTDK, etc), what I shall do?***
100101
A: If you build for Synopsys boards refer to documentation [embarc.org](https://embarc.org/platforms.html) as a good starting point.
101102
You should also note that example applications support different configurations for pre trained models and thus memory requirements, not all configurations can be built and run on Synopsys boards due to memory limitations and HW capabilities, read example application readme for details. embARC MLI Library must be also pre built specifically for your board by MetaWare Development Tools. Please note that makefiles provided with examples are configured for IoTDK only if GNU tools are used.

doc/documents/Examples_Tutorials/Examples_Tutorials.rst

Lines changed: 620 additions & 0 deletions
Large diffs are not rendered by default.

doc/documents/MLI_FP_data_format/MLI_FP_data_format.rst

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
MLI Fixed-Point Data Format
44
---------------------------
55

6-
The MLI Library targets an ARCv2DSP-based platform and implies
6+
The embARC MLI Library targets an ARCv2DSP-based platform and implies
77
efficient usage of its DSP Features. Hence, there is some
88
specificity of basic data types and arithmetical operations using it
99
in comparison with operations using float-point values.
@@ -14,11 +14,21 @@ values interpreted by typical Q notation. The following
1414
designation is used:
1515

1616
- value of *Qm.n* format have *m* bits for integer part (excluding sign bit),
17-
and *n* bits for fractional part.
17+
and *n* bits for fractional part (see the figure below).
1818

1919
- value of *Q.n* format have *n* bits for fractional part\ *.* The rest of the
2020
non-sign bits are assumed to hold an integer part.
2121

22+
.. image:: ../images/01_container1.png
23+
:align: center
24+
:alt: Qmn Container Representation
25+
26+
..
27+
28+
Regarding to the second notation, number of integer bits can be derived from the container size and number of fractional bits:
29+
30+
.. math:: m\ = cont\_ size\ - n
31+
2232
.. note::
2333
For more information regarding Q notation, see
2434

@@ -56,7 +66,13 @@ see :ref:`data_fmt_conv`.
5666
Number of fractional bits must be a non-negative value. The number of
5767
fractional bits might be larger than total number of containers
5868
significant (not-sign) bits. In this case all bits not present in the
59-
container implied equal to sign bit.
69+
container implied equal to sign bit:
70+
71+
.. image:: ../images/02_container2.png
72+
:align: center
73+
:alt: Qmn Container representation with negative integer bits
74+
75+
..
6076
6177
.. admonition:: Example
6278
:class: "admonition tip"
@@ -314,6 +330,8 @@ It depends on the basic operation used by primitive:
314330
315331
Output configurability is specified in description for each primitive.
316332

333+
.. _quant_acc_bit_depth:
334+
317335
Quantization: Influence of Accumulator Bit Depth
318336
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
319337

6.14 KB
Loading
6.07 KB
Loading
142 KB
Loading
245 KB
Loading
89.6 KB
Loading
106 KB
Loading
98.2 KB
Loading

0 commit comments

Comments
 (0)