You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/example_cifar10_caffe/README.md
+64-7Lines changed: 64 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,18 @@ Example is based on standard [Caffe tutorial](http://caffe.berkeleyvision.org/ga
5
5
6
6
Quick Start
7
7
--------------
8
-
hw/em9d.tcf template is a default template for this example. Other templated can be also used.
9
8
10
-
0. embARC MLI Library must be built for required hardware configuration first. See [embARC MLI Library building and quick start](public/README.md).
9
+
Example supports building using MetaWare Development tools and ARC GNU toolchain and running with MetaWare Debuger on nSim simulator.
10
+
11
+
### Build with MetaWare Development tools
12
+
13
+
Build requirements:
14
+
- MetaWare Development tools version 2018.12 or higher
15
+
- gmake
16
+
17
+
Here we will consider building for [/hw/em9d.tcf](/hw/em9d.tcf) template. This template is a default template for this example. Other templated can be also used.
18
+
19
+
0. embARC MLI Library must be built for required hardware configuration first. See [embARC MLI Library building and quick start](/README.md#building-and-quick-start).
11
20
12
21
1. Open command line and change working directory to './examples/example_cifar10_caffe/'
13
22
@@ -19,11 +28,54 @@ hw/em9d.tcf template is a default template for this example. Other templated can
19
28
20
29
gmake TCF_FILE=../../hw/em9d.tcf
21
30
22
-
4. Run example
31
+
###Run example with MetaWare Debuger on nSim simulator.
23
32
24
33
gmake run TCF_FILE=../../hw/em9d.tcf
25
34
26
-
5. Result Quality shall be "S/N=2344.4 (67.4 db)"
35
+
Result Quality shall be "S/N=3638.6 (71.2 db)"
36
+
37
+
### Build with ARC GNU toolchain
38
+
39
+
Here we will consider building with ARC GNU toolchain. As a platform for the assembly, we use the [IoT Devkit](https://embarc.org/embarc_osp/doc/build/html/board/iotdk.html) from [the embARC Open Software Platform (OSP)](https://embarc.org/embarc_osp/doc/build/html/introduction/introduction.html#)
40
+
41
+
Build requirements:
42
+
- ARC GNU toolchain version 2018.09 or higher
43
+
- embARC MLI Library prebuilt with MetaWare Development tools for IoT Devkit hardware configuration
44
+
- gmake
45
+
46
+
0. Prebuilt embARC MLI Library must be copyied into the ./examples/prebuilt folder.
47
+
48
+
1. Open command line and change working directory to './examples/example_cifar10_caffe/'
49
+
50
+
2. Clean previous build artifacts (optional)
51
+
52
+
gmake TOOLCHAIN=gnu clean
53
+
54
+
3. Build example
55
+
56
+
gmake TOOLCHAIN=gnu
57
+
58
+
Notes: IoT Devkit hardware configuration is specifed in Makefile. Additionally used memory.x linkscript file for GNU linker.
59
+
60
+
### Run example with MetaWare Debuger on nSim simulator.
61
+
62
+
Run requirements:
63
+
- MetaWare Development tools version 2018.12 or higher
64
+
- arcem9d.tcf file with hardware configuration of IoT Devkit for setup nSim.
65
+
66
+
0. Copy the [arcem9d.tcf](https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp/blob/master/board/iotdk/configs/10/tcf/arcem9d.tcf) file into example folder.
67
+
68
+
1. Run example
69
+
70
+
gmake run TOOLCHAIN=gnu TCF_FILE=arcem9d.tcf
71
+
72
+
Result Quality shall be "S/N=3638.6 (71.2 db)"
73
+
74
+
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)
75
+
76
+
### Run example without MetaWare Development tools
77
+
78
+
See documentation on [IoT Devkit](https://embarc.org/embarc_osp/doc/build/html/board/iotdk.html) on how to run executable built with [ARC GNU](https://embarc.org/toolchain/index.html) and [ARC open source development tools](https://embarc.org/embarc_osp/doc/build/html/index.html) on IoT Devkit.
27
79
28
80
29
81
Example Structure
@@ -43,11 +95,16 @@ Structure of example application may be logically divided on three parts:
43
95
* ../auxiliary/tests_aux.h(.c)
44
96
* ../auxiliary/idx_file.h(.c)
45
97
46
-
Example structure also contains test set including small subset of CIFAR-10 (20 vectors organized in IDX file format).
47
-
98
+
Example structure contains test set including small subset of CIFAR-10 (20 vectors organized in IDX file format).
99
+
100
+
Example structure also contains auxiliary files for development tools:
101
+
* arcem9d.lcf - linkscript file for MetaWare linker.
102
+
* memory.x - linkscript file for GNU linker.
103
+
* mdb_com_gnu - command script file for MetaWare Debugger.
104
+
48
105
More Options on Building and Running
49
106
---------------------------------------
50
-
CIFAR-10 example application is implemented in the same way as LSTM Based HAR example and provides the same configuration and running abilities. For more details see appropriate HAR example [description part](public/examples/example_har_smartphone/README.md).
107
+
CIFAR-10 example application is implemented in the same way as LSTM Based HAR example and provides the same configuration and running abilities. For more details see appropriate HAR example [description part](/examples/example_har_smartphone/README.md#more-options-on-building-and-running).
0 commit comments