| 1 |
# TCL File Generated by Component Editor 18.0 |
| 2 |
# Mon Jan 14 19:18:48 EST 2019 |
| 3 |
# DO NOT MODIFY |
| 4 |
|
| 5 |
|
| 6 |
# |
| 7 |
# tone_generator "bladeRF Tone Generator" v1.0 |
| 8 |
# Rey Sabrina Tucker <[email protected]> 2019.01.14.19:18:48 |
| 9 |
# Generates IQ samples with tones |
| 10 |
# |
| 11 |
|
| 12 |
# |
| 13 |
# request TCL package from ACDS 16.1 |
| 14 |
# |
| 15 |
package require -exact qsys 16.1 |
| 16 |
|
| 17 |
|
| 18 |
# |
| 19 |
# module tone_generator |
| 20 |
# |
| 21 |
set_module_property DESCRIPTION "Generates IQ samples with tones" |
| 22 |
set_module_property NAME tone_generator |
| 23 |
set_module_property VERSION 1.0 |
| 24 |
set_module_property INTERNAL false |
| 25 |
set_module_property OPAQUE_ADDRESS_MAP true |
| 26 |
set_module_property GROUP Peripherals |
| 27 |
set_module_property AUTHOR "Rey Sabrina Tucker <[email protected]>" |
| 28 |
set_module_property DISPLAY_NAME "bladeRF Tone Generator" |
| 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 |
set_module_property REPORT_HIERARCHY false |
| 34 |
|
| 35 |
|
| 36 |
# |
| 37 |
# file sets |
| 38 |
# |
| 39 |
add_fileset QUARTUS_SYNTH QUARTUS_SYNTH "" "" |
| 40 |
set_fileset_property QUARTUS_SYNTH TOP_LEVEL tone_generator_hw |
| 41 |
set_fileset_property QUARTUS_SYNTH ENABLE_RELATIVE_INCLUDE_PATHS false |
| 42 |
set_fileset_property QUARTUS_SYNTH ENABLE_FILE_OVERWRITE_MODE false |
| 43 |
add_fileset_file tone_generator_hw.vhd VHDL PATH ../vhdl/tone_generator_hw.vhd TOP_LEVEL_FILE |
| 44 |
add_fileset_file tone_generator.vhd VHDL PATH ../vhdl/tone_generator.vhd |
| 45 |
add_fileset_file nco.vhd VHDL PATH ../../synthesis/nco.vhd |
| 46 |
add_fileset_file cordic.vhd VHDL PATH ../../synthesis/cordic.vhd |
| 47 |
add_fileset_file reset_synchronizer.vhd VHDL PATH ../../synthesis/reset_synchronizer.vhd |
| 48 |
add_fileset_file synchronizer.vhd VHDL PATH ../../synthesis/synchronizer.vhd |
| 49 |
|
| 50 |
add_fileset SIM_VHDL SIM_VHDL "" "" |
| 51 |
set_fileset_property SIM_VHDL TOP_LEVEL tone_generator_hw |
| 52 |
set_fileset_property SIM_VHDL ENABLE_RELATIVE_INCLUDE_PATHS false |
| 53 |
set_fileset_property SIM_VHDL ENABLE_FILE_OVERWRITE_MODE false |
| 54 |
add_fileset_file tone_generator_tb.vhd VHDL PATH ../vhdl/tb/tone_generator_tb.vhd |
| 55 |
add_fileset_file tone_generator.vhd VHDL PATH ../vhdl/tone_generator.vhd |
| 56 |
add_fileset_file tone_generator_hw.vhd VHDL PATH ../vhdl/tone_generator_hw.vhd |
| 57 |
|
| 58 |
|
| 59 |
# |
| 60 |
# parameters |
| 61 |
# |
| 62 |
add_parameter QUEUE_LENGTH POSITIVE 8 "Number of tones that can be queued" |
| 63 |
set_parameter_property QUEUE_LENGTH DEFAULT_VALUE 8 |
| 64 |
set_parameter_property QUEUE_LENGTH DISPLAY_NAME "Queue length" |
| 65 |
set_parameter_property QUEUE_LENGTH TYPE POSITIVE |
| 66 |
set_parameter_property QUEUE_LENGTH UNITS None |
| 67 |
set_parameter_property QUEUE_LENGTH ALLOWED_RANGES 1:2147483647 |
| 68 |
set_parameter_property QUEUE_LENGTH DESCRIPTION "Number of tones that can be queued" |
| 69 |
set_parameter_property QUEUE_LENGTH HDL_PARAMETER true |
| 70 |
add_parameter ADDR_WIDTH POSITIVE 2 "Minimum 2 bits" |
| 71 |
set_parameter_property ADDR_WIDTH DEFAULT_VALUE 2 |
| 72 |
set_parameter_property ADDR_WIDTH DISPLAY_NAME "Address bus width" |
| 73 |
set_parameter_property ADDR_WIDTH TYPE POSITIVE |
| 74 |
set_parameter_property ADDR_WIDTH UNITS None |
| 75 |
set_parameter_property ADDR_WIDTH ALLOWED_RANGES 1:2147483647 |
| 76 |
set_parameter_property ADDR_WIDTH DESCRIPTION "Minimum 2 bits" |
| 77 |
set_parameter_property ADDR_WIDTH HDL_PARAMETER true |
| 78 |
add_parameter DATA_WIDTH POSITIVE 32 "Minimum 8 bits" |
| 79 |
set_parameter_property DATA_WIDTH DEFAULT_VALUE 32 |
| 80 |
set_parameter_property DATA_WIDTH DISPLAY_NAME "Data bus width" |
| 81 |
set_parameter_property DATA_WIDTH TYPE POSITIVE |
| 82 |
set_parameter_property DATA_WIDTH UNITS None |
| 83 |
set_parameter_property DATA_WIDTH ALLOWED_RANGES 1:2147483647 |
| 84 |
set_parameter_property DATA_WIDTH DESCRIPTION "Minimum 8 bits" |
| 85 |
set_parameter_property DATA_WIDTH HDL_PARAMETER true |
| 86 |
|
| 87 |
|
| 88 |
# |
| 89 |
# display items |
| 90 |
# |
| 91 |
|
| 92 |
|
| 93 |
# |
| 94 |
# connection point reset |
| 95 |
# |
| 96 |
add_interface reset reset end |
| 97 |
set_interface_property reset associatedClock clock_sink |
| 98 |
set_interface_property reset synchronousEdges DEASSERT |
| 99 |
set_interface_property reset ENABLED true |
| 100 |
set_interface_property reset EXPORT_OF "" |
| 101 |
set_interface_property reset PORT_NAME_MAP "" |
| 102 |
set_interface_property reset CMSIS_SVD_VARIABLES "" |
| 103 |
set_interface_property reset SVD_ADDRESS_GROUP "" |
| 104 |
|
| 105 |
add_interface_port reset reset reset Input 1 |
| 106 |
|
| 107 |
|
| 108 |
# |
| 109 |
# connection point avalon_slave_0 |
| 110 |
# |
| 111 |
add_interface avalon_slave_0 avalon end |
| 112 |
set_interface_property avalon_slave_0 addressUnits WORDS |
| 113 |
set_interface_property avalon_slave_0 associatedClock clock_sink |
| 114 |
set_interface_property avalon_slave_0 associatedReset reset |
| 115 |
set_interface_property avalon_slave_0 bitsPerSymbol 8 |
| 116 |
set_interface_property avalon_slave_0 burstOnBurstBoundariesOnly false |
| 117 |
set_interface_property avalon_slave_0 burstcountUnits WORDS |
| 118 |
set_interface_property avalon_slave_0 explicitAddressSpan 0 |
| 119 |
set_interface_property avalon_slave_0 holdTime 0 |
| 120 |
set_interface_property avalon_slave_0 linewrapBursts false |
| 121 |
set_interface_property avalon_slave_0 maximumPendingReadTransactions 1 |
| 122 |
set_interface_property avalon_slave_0 maximumPendingWriteTransactions 0 |
| 123 |
set_interface_property avalon_slave_0 readLatency 0 |
| 124 |
set_interface_property avalon_slave_0 readWaitTime 1 |
| 125 |
set_interface_property avalon_slave_0 setupTime 0 |
| 126 |
set_interface_property avalon_slave_0 timingUnits Cycles |
| 127 |
set_interface_property avalon_slave_0 writeWaitTime 0 |
| 128 |
set_interface_property avalon_slave_0 ENABLED true |
| 129 |
set_interface_property avalon_slave_0 EXPORT_OF "" |
| 130 |
set_interface_property avalon_slave_0 PORT_NAME_MAP "" |
| 131 |
set_interface_property avalon_slave_0 CMSIS_SVD_VARIABLES "" |
| 132 |
set_interface_property avalon_slave_0 SVD_ADDRESS_GROUP "" |
| 133 |
|
| 134 |
add_interface_port avalon_slave_0 addr address Input addr_width |
| 135 |
add_interface_port avalon_slave_0 din writedata Input data_width |
| 136 |
add_interface_port avalon_slave_0 dout readdata Output data_width |
| 137 |
add_interface_port avalon_slave_0 write write Input 1 |
| 138 |
add_interface_port avalon_slave_0 read read Input 1 |
| 139 |
add_interface_port avalon_slave_0 waitreq waitrequest Output 1 |
| 140 |
add_interface_port avalon_slave_0 readack readdatavalid Output 1 |
| 141 |
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isFlash 0 |
| 142 |
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isMemoryDevice 0 |
| 143 |
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isNonVolatileStorage 0 |
| 144 |
set_interface_assignment avalon_slave_0 embeddedsw.configuration.isPrintableDevice 0 |
| 145 |
|
| 146 |
|
| 147 |
# |
| 148 |
# connection point clock_sink |
| 149 |
# |
| 150 |
add_interface clock_sink clock end |
| 151 |
set_interface_property clock_sink clockRate 0 |
| 152 |
set_interface_property clock_sink ENABLED true |
| 153 |
set_interface_property clock_sink EXPORT_OF "" |
| 154 |
set_interface_property clock_sink PORT_NAME_MAP "" |
| 155 |
set_interface_property clock_sink CMSIS_SVD_VARIABLES "" |
| 156 |
set_interface_property clock_sink SVD_ADDRESS_GROUP "" |
| 157 |
|
| 158 |
add_interface_port clock_sink clock clk Input 1 |
| 159 |
|
| 160 |
|
| 161 |
# |
| 162 |
# connection point samplestream |
| 163 |
# |
| 164 |
add_interface samplestream conduit end |
| 165 |
set_interface_property samplestream associatedClock clock_sink |
| 166 |
set_interface_property samplestream associatedReset "" |
| 167 |
set_interface_property samplestream ENABLED true |
| 168 |
set_interface_property samplestream EXPORT_OF "" |
| 169 |
set_interface_property samplestream PORT_NAME_MAP "" |
| 170 |
set_interface_property samplestream CMSIS_SVD_VARIABLES "" |
| 171 |
set_interface_property samplestream SVD_ADDRESS_GROUP "" |
| 172 |
|
| 173 |
add_interface_port samplestream sample_valid valid Output 1 |
| 174 |
add_interface_port samplestream sample_i i Output 16 |
| 175 |
add_interface_port samplestream sample_q q Output 16 |
| 176 |
add_interface_port samplestream sample_clk clk Input 1 |
| 177 |
|
| 178 |
|
| 179 |
# |
| 180 |
# connection point status |
| 181 |
# |
| 182 |
add_interface status conduit end |
| 183 |
set_interface_property status associatedClock clock_sink |
| 184 |
set_interface_property status associatedReset "" |
| 185 |
set_interface_property status ENABLED true |
| 186 |
set_interface_property status EXPORT_OF "" |
| 187 |
set_interface_property status PORT_NAME_MAP "" |
| 188 |
set_interface_property status CMSIS_SVD_VARIABLES "" |
| 189 |
set_interface_property status SVD_ADDRESS_GROUP "" |
| 190 |
|
| 191 |
add_interface_port status queue_empty empty Output 1 |
| 192 |
add_interface_port status queue_full full Output 1 |
| 193 |
add_interface_port status running running Output 1 |
| 194 |
|