⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 preambles.bsv

📁 MIT关于OFDM收发器、WIFI收发器的ASIC和 FPGA硬件开发源码及资料
💻 BSV
📖 第 1 页 / 共 2 页
字号:
//----------------------------------------------------------------------//// The MIT License // // Copyright (c) 2007 Alfred Man Cheuk Ng, mcn02@mit.edu // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use,// copy, modify, merge, publish, distribute, sublicense, and/or sell// copies of the Software, and to permit persons to whom the// Software is furnished to do so, subject to the following conditions:// // The above copyright notice and this permission notice shall be// included in all copies or substantial portions of the Software.// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR// OTHER DEALINGS IN THE SOFTWARE.//----------------------------------------------------------------------//import List::*;import Vector::*;import Complex::*;import DataTypes::*;import RegFile::*;import FixedPoint::*;import FPComplex::*;// function to generate short training sequencefunction Vector#(128, FPComplex#(2,14)) getShortPreambles();	Vector#(128, FPComplex#(2,14)) tempV = Vector::toVector(		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(920000,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(1427600,10000000), fromRational(-126500,10000000)),		List::cons(cmplx(fromRational(-134700,10000000), fromRational(-785200,10000000)),		List::cons(cmplx(fromRational(-1324400,10000000), fromRational(23400,10000000)),		List::cons(cmplx(fromRational(460000,10000000), fromRational(460000,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(0,10000000), fromRational(920000,10000000)),		List::cons(cmplx(fromRational(-126500,10000000), fromRational(1427600,10000000)),		List::cons(cmplx(fromRational(-785200,10000000), fromRational(-134700,10000000)),		List::cons(cmplx(fromRational(23400,10000000), fromRational(-1324400,10000000)),		List::nil)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));	return tempV;endfunction// function to generate long training sequencefunction Vector#(128, FPComplex#(2,14)) getLongPreambles();	Vector#(128, FPComplex#(2,14)) tempV = Vector::toVector(		List::cons(cmplx(fromRational(1562500,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(-51200,10000000), fromRational(-1203300,10000000)),		List::cons(cmplx(fromRational(397500,10000000), fromRational(-1111600,10000000)),		List::cons(cmplx(fromRational(968300,10000000), fromRational(828000,10000000)),		List::cons(cmplx(fromRational(211100,10000000), fromRational(278900,10000000)),		List::cons(cmplx(fromRational(598200,10000000), fromRational(-877100,10000000)),		List::cons(cmplx(fromRational(-1151300,10000000), fromRational(-551800,10000000)),		List::cons(cmplx(fromRational(-383200,10000000), fromRational(-1061700,10000000)),		List::cons(cmplx(fromRational(975400,10000000), fromRational(-258900,10000000)),		List::cons(cmplx(fromRational(533400,10000000), fromRational(40800,10000000)),		List::cons(cmplx(fromRational(9900,10000000), fromRational(-1150000,10000000)),		List::cons(cmplx(fromRational(-1368000,10000000), fromRational(-473800,10000000)),		List::cons(cmplx(fromRational(244800,10000000), fromRational(-585300,10000000)),		List::cons(cmplx(fromRational(586700,10000000), fromRational(-149400,10000000)),		List::cons(cmplx(fromRational(-224800,10000000), fromRational(1606600,10000000)),		List::cons(cmplx(fromRational(1192400,10000000), fromRational(-41000,10000000)),		List::cons(cmplx(fromRational(625000,10000000), fromRational(-625000,10000000)),		List::cons(cmplx(fromRational(369200,10000000), fromRational(983400,10000000)),		List::cons(cmplx(fromRational(-572100,10000000), fromRational(393000,10000000)),		List::cons(cmplx(fromRational(-1312600,10000000), fromRational(652300,10000000)),		List::cons(cmplx(fromRational(822200,10000000), fromRational(923600,10000000)),		List::cons(cmplx(fromRational(695600,10000000), fromRational(141200,10000000)),		List::cons(cmplx(fromRational(-603100,10000000), fromRational(812900,10000000)),		List::cons(cmplx(fromRational(-564600,10000000), fromRational(-218000,10000000)),		List::cons(cmplx(fromRational(-350400,10000000), fromRational(-1508900,10000000)),		List::cons(cmplx(fromRational(-1218900,10000000), fromRational(-165700,10000000)),		List::cons(cmplx(fromRational(-1273200,10000000), fromRational(-205000,10000000)),		List::cons(cmplx(fromRational(750700,10000000), fromRational(-740400,10000000)),		List::cons(cmplx(fromRational(-28100,10000000), fromRational(537700,10000000)),		List::cons(cmplx(fromRational(-918900,10000000), fromRational(1151300,10000000)),		List::cons(cmplx(fromRational(917200,10000000), fromRational(1058700,10000000)),		List::cons(cmplx(fromRational(122800,10000000), fromRational(976000,10000000)),		List::cons(cmplx(fromRational(-1562500,10000000), fromRational(0,10000000)),		List::cons(cmplx(fromRational(122800,10000000), fromRational(-976000,10000000)),		List::cons(cmplx(fromRational(917200,10000000), fromRational(-1058700,10000000)),		List::cons(cmplx(fromRational(-918900,10000000), fromRational(-1151300,10000000)),		List::cons(cmplx(fromRational(-28100,10000000), fromRational(-537700,10000000)),		List::cons(cmplx(fromRational(750700,10000000), fromRational(740400,10000000)),		List::cons(cmplx(fromRational(-1273200,10000000), fromRational(205000,10000000)),		List::cons(cmplx(fromRational(-1218900,10000000), fromRational(165700,10000000)),		List::cons(cmplx(fromRational(-350400,10000000), fromRational(1508900,10000000)),		List::cons(cmplx(fromRational(-564600,10000000), fromRational(218000,10000000)),		List::cons(cmplx(fromRational(-603100,10000000), fromRational(-812900,10000000)),		List::cons(cmplx(fromRational(695600,10000000), fromRational(-141200,10000000)),		List::cons(cmplx(fromRational(822200,10000000), fromRational(-923600,10000000)),		List::cons(cmplx(fromRational(-1312600,10000000), fromRational(-652300,10000000)),		List::cons(cmplx(fromRational(-572100,10000000), fromRational(-393000,10000000)),		List::cons(cmplx(fromRational(369200,10000000), fromRational(-983400,10000000)),		List::cons(cmplx(fromRational(625000,10000000), fromRational(625000,10000000)),		List::cons(cmplx(fromRational(1192400,10000000), fromRational(41000,10000000)),		List::cons(cmplx(fromRational(-224800,10000000), fromRational(-1606600,10000000)),		List::cons(cmplx(fromRational(586700,10000000), fromRational(149400,10000000)),		List::cons(cmplx(fromRational(244800,10000000), fromRational(585300,10000000)),		List::cons(cmplx(fromRational(-1368000,10000000), fromRational(473800,10000000)),		List::cons(cmplx(fromRational(9900,10000000), fromRational(1150000,10000000)),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -