1 |
2 |
vv_gulyaev |
################################################################################
|
2 |
|
|
# Vivado (TM) v2017.4 (64-bit)
|
3 |
|
|
#
|
4 |
|
|
# README.txt: Please read the sections below to understand the steps required
|
5 |
|
|
# to simulate the design for a simulator, the directory structure
|
6 |
|
|
# and the generated exported files.
|
7 |
|
|
#
|
8 |
|
|
################################################################################
|
9 |
|
|
|
10 |
|
|
1. Simulate Design
|
11 |
|
|
|
12 |
|
|
To simulate design, cd to the simulator directory and execute the script.
|
13 |
|
|
|
14 |
|
|
For example:-
|
15 |
|
|
|
16 |
|
|
% cd questa
|
17 |
|
|
% ./top.sh
|
18 |
|
|
|
19 |
|
|
The export simulation flow requires the Xilinx pre-compiled simulation library
|
20 |
|
|
components for the target simulator. These components are referred using the
|
21 |
|
|
'-lib_map_path' switch. If this switch is specified, then the export simulation
|
22 |
|
|
will automatically set this library path in the generated script and update,
|
23 |
|
|
copy the simulator setup file(s) in the exported directory.
|
24 |
|
|
|
25 |
|
|
If '-lib_map_path' is not specified, then the pre-compiled simulation library
|
26 |
|
|
information will not be included in the exported scripts and that may cause
|
27 |
|
|
simulation errors when running this script. Alternatively, you can provide the
|
28 |
|
|
library information using this switch while executing the generated script.
|
29 |
|
|
|
30 |
|
|
For example:-
|
31 |
|
|
|
32 |
|
|
% ./top.sh -lib_map_path /design/questa/clibs
|
33 |
|
|
|
34 |
|
|
Please refer to the generated script header 'Prerequisite' section for more details.
|
35 |
|
|
|
36 |
|
|
2. Directory Structure
|
37 |
|
|
|
38 |
|
|
By default, if the -directory switch is not specified, export_simulation will
|
39 |
|
|
create the following directory structure:-
|
40 |
|
|
|
41 |
|
|
/export_sim/
|
42 |
|
|
|
43 |
|
|
For example, if the current working directory is /tmp/test, export_simulation
|
44 |
|
|
will create the following directory path:-
|
45 |
|
|
|
46 |
|
|
/tmp/test/export_sim/questa
|
47 |
|
|
|
48 |
|
|
If -directory switch is specified, export_simulation will create a simulator
|
49 |
|
|
sub-directory under the specified directory path.
|
50 |
|
|
|
51 |
|
|
For example, 'export_simulation -directory /tmp/test/my_test_area/func_sim'
|
52 |
|
|
command will create the following directory:-
|
53 |
|
|
|
54 |
|
|
/tmp/test/my_test_area/func_sim/questa
|
55 |
|
|
|
56 |
|
|
By default, if -simulator is not specified, export_simulation will create a
|
57 |
|
|
simulator sub-directory for each simulator and export the files for each simulator
|
58 |
|
|
in this sub-directory respectively.
|
59 |
|
|
|
60 |
|
|
IMPORTANT: Please note that the simulation library path must be specified manually
|
61 |
|
|
in the generated script for the respective simulator. Please refer to the generated
|
62 |
|
|
script header 'Prerequisite' section for more details.
|
63 |
|
|
|
64 |
|
|
3. Exported script and files
|
65 |
|
|
|
66 |
|
|
Export simulation will create the driver shell script, setup files and copy the
|
67 |
|
|
design sources in the output directory path.
|
68 |
|
|
|
69 |
|
|
By default, when the -script_name switch is not specified, export_simulation will
|
70 |
|
|
create the following script name:-
|
71 |
|
|
|
72 |
|
|
.sh (Unix)
|
73 |
|
|
When exporting the files for an IP using the -of_objects switch, export_simulation
|
74 |
|
|
will create the following script name:-
|
75 |
|
|
|
76 |
|
|
.sh (Unix)
|
77 |
|
|
Export simulation will create the setup files for the target simulator specified
|
78 |
|
|
with the -simulator switch.
|
79 |
|
|
|
80 |
|
|
For example, if the target simulator is "ies", export_simulation will create the
|
81 |
|
|
'cds.lib', 'hdl.var' and design library diectories and mappings in the 'cds.lib'
|
82 |
|
|
file.
|
83 |
|
|
|