Skip to content

Commit 2973eff

Browse files
authored
Merge pull request #64 from foss-for-synopsys-dwc-arc-processors/doc_fixes
Doc fixes
2 parents 19365c6 + 93cbf07 commit 2973eff

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ Please be aware that the list of specializations is not guaranteed to be backwar
9090
## Frequently Asked Questions
9191
---------------
9292

93-
Q: Can I use ARC GNU tools to build embARC MLI library?
93+
***Q: Can I use ARC GNU tools to build embARC MLI library?***
9494
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
9595

96-
Q: Can I use MetaWare Development Tools Lite to pre-build embARC MLI library and ARC GNU to build example application?
96+
***Q: Can I use MetaWare Development Tools Lite to pre-build embARC MLI library and ARC GNU to build example application?***
9797
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.
9898

99-
Q: I can not build and run example application for my Synopsys board (EMSK, IoTDK, etc), what I shall do?
99+
***Q: I can not build and run example application for my Synopsys board (EMSK, IoTDK, etc), what I shall do?***
100100
A: If you build for Synopsys boards refer to documentation [embarc.org](https://embarc.org/platforms.html) as a good starting point.
101101
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.

examples/example_cifar10_caffe/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here we will consider building for [/hw/em9d.tcf](/hw/em9d.tcf) template. This t
3232

3333
gmake run TCF_FILE=../../hw/em9d.tcf
3434

35-
Result Quality shall be "S/N=3638.6 (71.2 db)"
35+
Result Quality shall be "S/N=4383.8 (72.8 db)"
3636

3737
### Build with ARC GNU toolchain
3838

@@ -69,7 +69,7 @@ Here we will consider building with ARC GNU toolchain. As a platform for the ass
6969

7070
gmake run TOOLCHAIN=gnu TCF_FILE=arcem9d.tcf
7171

72-
Result Quality shall be "S/N=3638.6 (71.2 db)"
72+
Result Quality shall be "S/N=4383.8 (72.8 db)"
7373

7474
Notes: Example built by ARC GNU tools is run using mdb_com_gnu script file. Modify this file to customize the example run mode. See [More Options on Building and Running](README.md#more-options-on-building-and-running)
7575

examples/example_cifar10_caffe/cifar10_constants.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ extern const w_type _W2 L5_fc_bias_buf[];
119119
//
120120
//======================================================
121121
#if !defined(MODEL_BIG) // Small Model
122-
#if (MODEL_BIT_DEPTH == MODEL_FX_16)
122+
#if (MODEL_BIT_DEPTH == MODEL_FX_16) || (MODEL_BIT_DEPTH == MODEL_FX_8W16D)
123123

124124
#define CONV1_W_INT (-1)
125125
#define CONV1_B_INT (0)
@@ -131,13 +131,13 @@ extern const w_type _W2 L5_fc_bias_buf[];
131131

132132
#define CONV3_W_INT (-1)
133133
#define CONV3_B_INT (-2)
134-
#define CONV3_OUT_INT (6)
134+
#define CONV3_OUT_INT (5)
135135

136136
#define FC4_W_INT (-1)
137137
#define FC4_B_INT (-2)
138138
#define FC4_OUT_INT (5)
139139

140-
#else //(MODEL_BIT_DEPTH == MODEL_FX_8 or MODEL_FX_8W16D)
140+
#else //(MODEL_BIT_DEPTH == MODEL_FX_8)
141141

142142
#define CONV1_W_INT (-1)
143143
#define CONV1_B_INT (0)
@@ -158,7 +158,7 @@ extern const w_type _W2 L5_fc_bias_buf[];
158158
#endif
159159

160160
#else // Big Model
161-
#if (MODEL_BIT_DEPTH == MODEL_FX_16)
161+
#if (MODEL_BIT_DEPTH == MODEL_FX_16) || (MODEL_BIT_DEPTH == MODEL_FX_8W16D)
162162

163163
#define CONV1_W_INT (0)
164164
#define CONV1_B_INT (0)
@@ -269,11 +269,11 @@ extern const w_type _W2 L5_fc_bias_buf[];
269269
#define CONV3_W_RANK (4)
270270
#define CONV3_B_RANK (1)
271271

272-
#define CONV3_W_FRAQ (FRQ_BITS(CONV2_W_INT, w_type))
273-
#define L3_WQ(val) QMN(w_type, CONV2_W_FRAQ, val)
274-
#define CONV3_B_FRAQ (FRQ_BITS(CONV2_B_INT, w_type))
275-
#define L3_BQ(val) QMN(w_type, CONV2_B_FRAQ, val)
276-
#define CONV3_OUT_FRAQ (FRQ_BITS(CONV2_OUT_INT, d_type))
272+
#define CONV3_W_FRAQ (FRQ_BITS(CONV3_W_INT, w_type))
273+
#define L3_WQ(val) QMN(w_type, CONV3_W_FRAQ, val)
274+
#define CONV3_B_FRAQ (FRQ_BITS(CONV3_B_INT, w_type))
275+
#define L3_BQ(val) QMN(w_type, CONV3_B_FRAQ, val)
276+
#define CONV3_OUT_FRAQ (FRQ_BITS(CONV3_OUT_INT, d_type))
277277

278278
// FC4
279279
//================================================

0 commit comments

Comments
 (0)