1 |
7 |
alfik |
# TCL File Generated by Component Editor 14.0
|
2 |
|
|
# Mon Aug 18 20:36:09 CEST 2014
|
3 |
2 |
alfik |
# DO NOT MODIFY
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
#
|
7 |
7 |
alfik |
# driver_sd "driver_sd" v2.0
|
8 |
|
|
# 2014.08.18.20:36:09
|
9 |
2 |
alfik |
#
|
10 |
|
|
#
|
11 |
|
|
|
12 |
|
|
#
|
13 |
7 |
alfik |
# request TCL package from ACDS 14.0
|
14 |
2 |
alfik |
#
|
15 |
7 |
alfik |
package require -exact qsys 14.0
|
16 |
2 |
alfik |
|
17 |
|
|
|
18 |
|
|
#
|
19 |
|
|
# module driver_sd
|
20 |
|
|
#
|
21 |
|
|
set_module_property DESCRIPTION ""
|
22 |
|
|
set_module_property NAME driver_sd
|
23 |
7 |
alfik |
set_module_property VERSION 2.0
|
24 |
2 |
alfik |
set_module_property INTERNAL false
|
25 |
|
|
set_module_property OPAQUE_ADDRESS_MAP true
|
26 |
|
|
set_module_property GROUP ao486
|
27 |
|
|
set_module_property AUTHOR ""
|
28 |
|
|
set_module_property DISPLAY_NAME driver_sd
|
29 |
|
|
set_module_property INSTANTIATE_IN_SYSTEM_MODULE true
|
30 |
|
|
set_module_property EDITABLE true
|
31 |
|
|
set_module_property REPORT_TO_TALKBACK false
|
32 |
|
|
set_module_property ALLOW_GREYBOX_GENERATION false
|
33 |
7 |
alfik |
set_module_property REPORT_HIERARCHY false
|
34 |
2 |
alfik |
|
35 |
|
|
|
36 |
|
|
#
|
37 |
|
|
# file sets
|
38 |
|
|
#
|
39 |
|
|
add_fileset QUARTUS_SYNTH QUARTUS_SYNTH "" ""
|
40 |
|
|
set_fileset_property QUARTUS_SYNTH TOP_LEVEL driver_sd
|
41 |
|
|
set_fileset_property QUARTUS_SYNTH ENABLE_RELATIVE_INCLUDE_PATHS false
|
42 |
7 |
alfik |
set_fileset_property QUARTUS_SYNTH ENABLE_FILE_OVERWRITE_MODE false
|
43 |
|
|
add_fileset_file avalon_master.v VERILOG PATH avalon_master.v
|
44 |
|
|
add_fileset_file avalon_slave.v VERILOG PATH avalon_slave.v
|
45 |
|
|
add_fileset_file card_init.v VERILOG PATH card_init.v
|
46 |
|
|
add_fileset_file card_read.v VERILOG PATH card_read.v
|
47 |
|
|
add_fileset_file card_write.v VERILOG PATH card_write.v
|
48 |
|
|
add_fileset_file cmd.v VERILOG PATH cmd.v
|
49 |
|
|
add_fileset_file dat.v VERILOG PATH dat.v
|
50 |
2 |
alfik |
add_fileset_file driver_sd.v VERILOG PATH driver_sd.v TOP_LEVEL_FILE
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
#
|
54 |
|
|
# parameters
|
55 |
|
|
#
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
#
|
59 |
|
|
# display items
|
60 |
|
|
#
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
#
|
64 |
|
|
# connection point clock
|
65 |
|
|
#
|
66 |
|
|
add_interface clock clock end
|
67 |
|
|
set_interface_property clock clockRate 0
|
68 |
|
|
set_interface_property clock ENABLED true
|
69 |
|
|
set_interface_property clock EXPORT_OF ""
|
70 |
|
|
set_interface_property clock PORT_NAME_MAP ""
|
71 |
|
|
set_interface_property clock CMSIS_SVD_VARIABLES ""
|
72 |
|
|
set_interface_property clock SVD_ADDRESS_GROUP ""
|
73 |
|
|
|
74 |
|
|
add_interface_port clock clk clk Input 1
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
#
|
78 |
|
|
# connection point avalon_slave_0
|
79 |
|
|
#
|
80 |
|
|
add_interface avalon_slave_0 avalon end
|
81 |
|
|
set_interface_property avalon_slave_0 addressUnits WORDS
|
82 |
|
|
set_interface_property avalon_slave_0 associatedClock clock
|
83 |
|
|
set_interface_property avalon_slave_0 associatedReset reset_sink
|
84 |
|
|
set_interface_property avalon_slave_0 bitsPerSymbol 8
|
85 |
|
|
set_interface_property avalon_slave_0 burstOnBurstBoundariesOnly false
|
86 |
|
|
set_interface_property avalon_slave_0 burstcountUnits WORDS
|
87 |
|
|
set_interface_property avalon_slave_0 explicitAddressSpan 0
|
88 |
|
|
set_interface_property avalon_slave_0 holdTime 0
|
89 |
|
|
set_interface_property avalon_slave_0 linewrapBursts false
|
90 |
|
|
set_interface_property avalon_slave_0 maximumPendingReadTransactions 0
|
91 |
7 |
alfik |
set_interface_property avalon_slave_0 maximumPendingWriteTransactions 0
|
92 |
2 |
alfik |
set_interface_property avalon_slave_0 readLatency 0
|
93 |
|
|
set_interface_property avalon_slave_0 readWaitTime 1
|
94 |
|
|
set_interface_property avalon_slave_0 setupTime 0
|
95 |
|
|
set_interface_property avalon_slave_0 timingUnits Cycles
|
96 |
|
|
set_interface_property avalon_slave_0 writeWaitTime 0
|
97 |
|
|
set_interface_property avalon_slave_0 ENABLED true
|
98 |
|
|
set_interface_property avalon_slave_0 EXPORT_OF ""
|
99 |
|
|
set_interface_property avalon_slave_0 PORT_NAME_MAP ""
|
100 |
|
|
set_interface_property avalon_slave_0 CMSIS_SVD_VARIABLES ""
|
101 |
|
|
set_interface_property avalon_slave_0 SVD_ADDRESS_GROUP ""
|
102 |
|
|
|
103 |
|
|
add_interface_port avalon_slave_0 avs_address address Input 2
|
104 |
|
|
add_interface_port avalon_slave_0 avs_read read Input 1
|
105 |
|
|
add_interface_port avalon_slave_0 avs_readdata readdata Output 32
|
106 |
|
|
add_interface_port avalon_slave_0 avs_write write Input 1
|
107 |
|
|
add_interface_port avalon_slave_0 avs_writedata writedata Input 32
|
108 |
|
|
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isFlash 0
|
109 |
|
|
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isMemoryDevice 0
|
110 |
|
|
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isNonVolatileStorage 0
|
111 |
|
|
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isPrintableDevice 0
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
#
|
115 |
|
|
# connection point avalon_master_0
|
116 |
|
|
#
|
117 |
|
|
add_interface avalon_master_0 avalon start
|
118 |
|
|
set_interface_property avalon_master_0 addressUnits SYMBOLS
|
119 |
|
|
set_interface_property avalon_master_0 associatedClock clock
|
120 |
|
|
set_interface_property avalon_master_0 associatedReset reset_sink
|
121 |
|
|
set_interface_property avalon_master_0 bitsPerSymbol 8
|
122 |
|
|
set_interface_property avalon_master_0 burstOnBurstBoundariesOnly false
|
123 |
|
|
set_interface_property avalon_master_0 burstcountUnits WORDS
|
124 |
|
|
set_interface_property avalon_master_0 doStreamReads false
|
125 |
|
|
set_interface_property avalon_master_0 doStreamWrites false
|
126 |
|
|
set_interface_property avalon_master_0 holdTime 0
|
127 |
|
|
set_interface_property avalon_master_0 linewrapBursts false
|
128 |
|
|
set_interface_property avalon_master_0 maximumPendingReadTransactions 0
|
129 |
7 |
alfik |
set_interface_property avalon_master_0 maximumPendingWriteTransactions 0
|
130 |
2 |
alfik |
set_interface_property avalon_master_0 readLatency 0
|
131 |
|
|
set_interface_property avalon_master_0 readWaitTime 1
|
132 |
|
|
set_interface_property avalon_master_0 setupTime 0
|
133 |
|
|
set_interface_property avalon_master_0 timingUnits Cycles
|
134 |
|
|
set_interface_property avalon_master_0 writeWaitTime 0
|
135 |
|
|
set_interface_property avalon_master_0 ENABLED true
|
136 |
|
|
set_interface_property avalon_master_0 EXPORT_OF ""
|
137 |
|
|
set_interface_property avalon_master_0 PORT_NAME_MAP ""
|
138 |
|
|
set_interface_property avalon_master_0 CMSIS_SVD_VARIABLES ""
|
139 |
|
|
set_interface_property avalon_master_0 SVD_ADDRESS_GROUP ""
|
140 |
|
|
|
141 |
|
|
add_interface_port avalon_master_0 avm_waitrequest waitrequest Input 1
|
142 |
|
|
add_interface_port avalon_master_0 avm_read read Output 1
|
143 |
|
|
add_interface_port avalon_master_0 avm_readdata readdata Input 32
|
144 |
|
|
add_interface_port avalon_master_0 avm_readdatavalid readdatavalid Input 1
|
145 |
|
|
add_interface_port avalon_master_0 avm_write write Output 1
|
146 |
|
|
add_interface_port avalon_master_0 avm_writedata writedata Output 32
|
147 |
|
|
add_interface_port avalon_master_0 avm_address address Output 32
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
#
|
151 |
7 |
alfik |
# connection point reset_sink
|
152 |
2 |
alfik |
#
|
153 |
7 |
alfik |
add_interface reset_sink reset end
|
154 |
|
|
set_interface_property reset_sink associatedClock clock
|
155 |
|
|
set_interface_property reset_sink synchronousEdges DEASSERT
|
156 |
|
|
set_interface_property reset_sink ENABLED true
|
157 |
|
|
set_interface_property reset_sink EXPORT_OF ""
|
158 |
|
|
set_interface_property reset_sink PORT_NAME_MAP ""
|
159 |
|
|
set_interface_property reset_sink CMSIS_SVD_VARIABLES ""
|
160 |
|
|
set_interface_property reset_sink SVD_ADDRESS_GROUP ""
|
161 |
2 |
alfik |
|
162 |
7 |
alfik |
add_interface_port reset_sink rst_n reset_n Input 1
|
163 |
2 |
alfik |
|
164 |
7 |
alfik |
|
165 |
|
|
#
|
166 |
|
|
# connection point conduit_cmd
|
167 |
|
|
#
|
168 |
|
|
add_interface conduit_cmd conduit end
|
169 |
|
|
set_interface_property conduit_cmd associatedClock clock
|
170 |
|
|
set_interface_property conduit_cmd associatedReset reset_sink
|
171 |
|
|
set_interface_property conduit_cmd ENABLED true
|
172 |
|
|
set_interface_property conduit_cmd EXPORT_OF ""
|
173 |
|
|
set_interface_property conduit_cmd PORT_NAME_MAP ""
|
174 |
|
|
set_interface_property conduit_cmd CMSIS_SVD_VARIABLES ""
|
175 |
|
|
set_interface_property conduit_cmd SVD_ADDRESS_GROUP ""
|
176 |
|
|
|
177 |
|
|
add_interface_port conduit_cmd sd_cmd export Bidir 1
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
#
|
181 |
|
|
# connection point conduit_dat
|
182 |
|
|
#
|
183 |
|
|
add_interface conduit_dat conduit end
|
184 |
|
|
set_interface_property conduit_dat associatedClock clock
|
185 |
|
|
set_interface_property conduit_dat associatedReset reset_sink
|
186 |
|
|
set_interface_property conduit_dat ENABLED true
|
187 |
|
|
set_interface_property conduit_dat EXPORT_OF ""
|
188 |
|
|
set_interface_property conduit_dat PORT_NAME_MAP ""
|
189 |
|
|
set_interface_property conduit_dat CMSIS_SVD_VARIABLES ""
|
190 |
|
|
set_interface_property conduit_dat SVD_ADDRESS_GROUP ""
|
191 |
|
|
|
192 |
|
|
add_interface_port conduit_dat sd_dat export Bidir 4
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
#
|
196 |
|
|
# connection point conduit_clk
|
197 |
|
|
#
|
198 |
|
|
add_interface conduit_clk conduit end
|
199 |
|
|
set_interface_property conduit_clk associatedClock clock
|
200 |
|
|
set_interface_property conduit_clk associatedReset reset_sink
|
201 |
|
|
set_interface_property conduit_clk ENABLED true
|
202 |
|
|
set_interface_property conduit_clk EXPORT_OF ""
|
203 |
|
|
set_interface_property conduit_clk PORT_NAME_MAP ""
|
204 |
|
|
set_interface_property conduit_clk CMSIS_SVD_VARIABLES ""
|
205 |
|
|
set_interface_property conduit_clk SVD_ADDRESS_GROUP ""
|
206 |
|
|
|
207 |
|
|
add_interface_port conduit_clk sd_clk export Output 1
|
208 |
|
|
|