📄 preambles.bsv
字号:
//----------------------------------------------------------------------//// 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#(256, FPComplex#(2,14)) getShortPreambles(); Vector#(256, FPComplex#(2,14)) tempV = Vector::toVector( List::cons(cmplx(fromRational(625000,10000000), fromRational(625000,10000000)), List::cons(cmplx(fromRational(353100,10000000), fromRational(-1029300,10000000)), List::cons(cmplx(fromRational(-757100,10000000), fromRational(194400,10000000)), List::cons(cmplx(fromRational(-441500,10000000), fromRational(665000,10000000)), List::cons(cmplx(fromRational(369300,10000000), fromRational(-62800,10000000)), List::cons(cmplx(fromRational(920500,10000000), fromRational(597200,10000000)), List::cons(cmplx(fromRational(347100,10000000), fromRational(-294900,10000000)), List::cons(cmplx(fromRational(206500,10000000), fromRational(-921400,10000000)), List::cons(cmplx(fromRational(552400,10000000), fromRational(-552400,10000000)), List::cons(cmplx(fromRational(-10100,10000000), fromRational(-169700,10000000)), List::cons(cmplx(fromRational(-34800,10000000), fromRational(558900,10000000)), List::cons(cmplx(fromRational(-239100,10000000), fromRational(-507500,10000000)), List::cons(cmplx(fromRational(-1021400,10000000), fromRational(-284700,10000000)), List::cons(cmplx(fromRational(-312000,10000000), fromRational(869900,10000000)), List::cons(cmplx(fromRational(766700,10000000), fromRational(-538200,10000000)), List::cons(cmplx(fromRational(-103800,10000000), fromRational(-519300,10000000)), List::cons(cmplx(fromRational(-1093800,10000000), fromRational(-156200,10000000)), List::cons(cmplx(fromRational(-160700,10000000), fromRational(-690600,10000000)), List::cons(cmplx(fromRational(-77700,10000000), fromRational(508300,10000000)), List::cons(cmplx(fromRational(-821800,10000000), fromRational(383000,10000000)), List::cons(cmplx(fromRational(-21700,10000000), fromRational(-623000,10000000)), List::cons(cmplx(fromRational(576500,10000000), fromRational(-112100,10000000)), List::cons(cmplx(fromRational(889200,10000000), fromRational(406700,10000000)), List::cons(cmplx(fromRational(400100,10000000), fromRational(645400,10000000)), List::cons(cmplx(fromRational(-773400,10000000), fromRational(773400,10000000)), List::cons(cmplx(fromRational(303000,10000000), fromRational(789100,10000000)), List::cons(cmplx(fromRational(471400,10000000), fromRational(-193200,10000000)), List::cons(cmplx(fromRational(-805300,10000000), fromRational(-747500,10000000)), List::cons(cmplx(fromRational(-359400,10000000), fromRational(753800,10000000)), List::cons(cmplx(fromRational(-303100,10000000), fromRational(727700,10000000)), List::cons(cmplx(fromRational(127500,10000000), fromRational(-13700,10000000)), List::cons(cmplx(fromRational(876900,10000000), fromRational(655200,10000000)), List::cons(cmplx(fromRational(0,10000000), fromRational(0,10000000)), List::cons(cmplx(fromRational(81500,10000000), fromRational(-850300,10000000)), List::cons(cmplx(fromRational(775300,10000000), fromRational(-753700,10000000)), List::cons(cmplx(fromRational(875700,10000000), fromRational(-480000,10000000)), List::cons(cmplx(fromRational(827100,10000000), fromRational(634200,10000000)), List::cons(cmplx(fromRational(328700,10000000), fromRational(629200,10000000)), List::cons(cmplx(fromRational(259700,10000000), fromRational(-300800,10000000)), List::cons(cmplx(fromRational(-244500,10000000), fromRational(337300,10000000)), List::cons(cmplx(fromRational(-552400,10000000), fromRational(552400,10000000)), List::cons(cmplx(fromRational(718800,10000000), fromRational(-143500,10000000)), List::cons(cmplx(fromRational(833200,10000000), fromRational(478600,10000000)), List::cons(cmplx(fromRational(-129400,10000000), fromRational(371600,10000000)), List::cons(cmplx(fromRational(83900,10000000), fromRational(-911700,10000000)), List::cons(cmplx(fromRational(598800,10000000), fromRational(-279400,10000000)), List::cons(cmplx(fromRational(214700,10000000), fromRational(655500,10000000)), List::cons(cmplx(fromRational(-439100,10000000), fromRational(678400,10000000)), List::cons(cmplx(fromRational(-781200,10000000), fromRational(781200,10000000)), List::cons(cmplx(fromRational(-1006600,10000000), fromRational(-149600,10000000)), List::cons(cmplx(fromRational(-382500,10000000), fromRational(-391000,10000000)), List::cons(cmplx(fromRational(-101900,10000000), fromRational(45900,10000000)), List::cons(cmplx(fromRational(-549600,10000000), fromRational(-573400,10000000)), List::cons(cmplx(fromRational(296900,10000000), fromRational(112400,10000000)), List::cons(cmplx(fromRational(195900,10000000), fromRational(630800,10000000)), List::cons(cmplx(fromRational(-306100,10000000), fromRational(-535100,10000000)), List::cons(cmplx(fromRational(773400,10000000), fromRational(-773400,10000000)), List::cons(cmplx(fromRational(87100,10000000), fromRational(-407700,10000000)), List::cons(cmplx(fromRational(-827800,10000000), fromRational(-402500,10000000)), List::cons(cmplx(fromRational(-470600,10000000), fromRational(-614400,10000000)), List::cons(cmplx(fromRational(-578100,10000000), fromRational(-182400,10000000)), List::cons(cmplx(fromRational(27400,10000000), fromRational(106700,10000000)), List::cons(cmplx(fromRational(-300900,10000000), fromRational(-545500,10000000)), List::cons(cmplx(fromRational(-756300,10000000), fromRational(543200,10000000)), List::cons(cmplx(fromRational(625000,10000000), fromRational(625000,10000000)), List::cons(cmplx(fromRational(353100,10000000), fromRational(-1029300,10000000)), List::cons(cmplx(fromRational(-757100,10000000), fromRational(194400,10000000)), List::cons(cmplx(fromRational(-441500,10000000), fromRational(665000,10000000)), List::cons(cmplx(fromRational(369300,10000000), fromRational(-62800,10000000)), List::cons(cmplx(fromRational(920500,10000000), fromRational(597200,10000000)), List::cons(cmplx(fromRational(347100,10000000), fromRational(-294900,10000000)), List::cons(cmplx(fromRational(206500,10000000), fromRational(-921400,10000000)), List::cons(cmplx(fromRational(552400,10000000), fromRational(-552400,10000000)), List::cons(cmplx(fromRational(-10100,10000000), fromRational(-169700,10000000)), List::cons(cmplx(fromRational(-34800,10000000), fromRational(558900,10000000)), List::cons(cmplx(fromRational(-239100,10000000), fromRational(-507500,10000000)), List::cons(cmplx(fromRational(-1021400,10000000), fromRational(-284700,10000000)), List::cons(cmplx(fromRational(-312000,10000000), fromRational(869900,10000000)), List::cons(cmplx(fromRational(766700,10000000), fromRational(-538200,10000000)), List::cons(cmplx(fromRational(-103800,10000000), fromRational(-519300,10000000)), List::cons(cmplx(fromRational(-1093800,10000000), fromRational(-156200,10000000)), List::cons(cmplx(fromRational(-160700,10000000), fromRational(-690600,10000000)), List::cons(cmplx(fromRational(-77700,10000000), fromRational(508300,10000000)), List::cons(cmplx(fromRational(-821800,10000000), fromRational(383000,10000000)), List::cons(cmplx(fromRational(-21700,10000000), fromRational(-623000,10000000)), List::cons(cmplx(fromRational(576500,10000000), fromRational(-112100,10000000)), List::cons(cmplx(fromRational(889200,10000000), fromRational(406700,10000000)), List::cons(cmplx(fromRational(400100,10000000), fromRational(645400,10000000)), List::cons(cmplx(fromRational(-773400,10000000), fromRational(773400,10000000)), List::cons(cmplx(fromRational(303000,10000000), fromRational(789100,10000000)), List::cons(cmplx(fromRational(471400,10000000), fromRational(-193200,10000000)), List::cons(cmplx(fromRational(-805300,10000000), fromRational(-747500,10000000)), List::cons(cmplx(fromRational(-359400,10000000), fromRational(753800,10000000)), List::cons(cmplx(fromRational(-303100,10000000), fromRational(727700,10000000)), List::cons(cmplx(fromRational(127500,10000000), fromRational(-13700,10000000)), List::cons(cmplx(fromRational(876900,10000000), fromRational(655200,10000000)), List::cons(cmplx(fromRational(0,10000000), fromRational(0,10000000)), List::cons(cmplx(fromRational(81500,10000000), fromRational(-850300,10000000)), List::cons(cmplx(fromRational(775300,10000000), fromRational(-753700,10000000)), List::cons(cmplx(fromRational(875700,10000000), fromRational(-480000,10000000)), List::cons(cmplx(fromRational(827100,10000000), fromRational(634200,10000000)), List::cons(cmplx(fromRational(328700,10000000), fromRational(629200,10000000)), List::cons(cmplx(fromRational(259700,10000000), fromRational(-300800,10000000)), List::cons(cmplx(fromRational(-244500,10000000), fromRational(337300,10000000)), List::cons(cmplx(fromRational(-552400,10000000), fromRational(552400,10000000)), List::cons(cmplx(fromRational(718800,10000000), fromRational(-143500,10000000)), List::cons(cmplx(fromRational(833200,10000000), fromRational(478600,10000000)), List::cons(cmplx(fromRational(-129400,10000000), fromRational(371600,10000000)), List::cons(cmplx(fromRational(83900,10000000), fromRational(-911700,10000000)), List::cons(cmplx(fromRational(598800,10000000), fromRational(-279400,10000000)), List::cons(cmplx(fromRational(214700,10000000), fromRational(655500,10000000)), List::cons(cmplx(fromRational(-439100,10000000), fromRational(678400,10000000)), List::cons(cmplx(fromRational(-781200,10000000), fromRational(781200,10000000)), List::cons(cmplx(fromRational(-1006600,10000000), fromRational(-149600,10000000)), List::cons(cmplx(fromRational(-382500,10000000), fromRational(-391000,10000000)), List::cons(cmplx(fromRational(-101900,10000000), fromRational(45900,10000000)), List::cons(cmplx(fromRational(-549600,10000000), fromRational(-573400,10000000)), List::cons(cmplx(fromRational(296900,10000000), fromRational(112400,10000000)), List::cons(cmplx(fromRational(195900,10000000), fromRational(630800,10000000)), List::cons(cmplx(fromRational(-306100,10000000), fromRational(-535100,10000000)), List::cons(cmplx(fromRational(773400,10000000), fromRational(-773400,10000000)), List::cons(cmplx(fromRational(87100,10000000), fromRational(-407700,10000000)), List::cons(cmplx(fromRational(-827800,10000000), fromRational(-402500,10000000)), List::cons(cmplx(fromRational(-470600,10000000), fromRational(-614400,10000000)), List::cons(cmplx(fromRational(-578100,10000000), fromRational(-182400,10000000)), List::cons(cmplx(fromRational(27400,10000000), fromRational(106700,10000000)), List::cons(cmplx(fromRational(-300900,10000000), fromRational(-545500,10000000)), List::cons(cmplx(fromRational(-756300,10000000), fromRational(543200,10000000)), List::cons(cmplx(fromRational(625000,10000000), fromRational(625000,10000000)), List::cons(cmplx(fromRational(353100,10000000), fromRational(-1029300,10000000)), List::cons(cmplx(fromRational(-757100,10000000), fromRational(194400,10000000)), List::cons(cmplx(fromRational(-441500,10000000), fromRational(665000,10000000)), List::cons(cmplx(fromRational(369300,10000000), fromRational(-62800,10000000)), List::cons(cmplx(fromRational(920500,10000000), fromRational(597200,10000000)), List::cons(cmplx(fromRational(347100,10000000), fromRational(-294900,10000000)), List::cons(cmplx(fromRational(206500,10000000), fromRational(-921400,10000000)), List::cons(cmplx(fromRational(552400,10000000), fromRational(-552400,10000000)), List::cons(cmplx(fromRational(-10100,10000000), fromRational(-169700,10000000)), List::cons(cmplx(fromRational(-34800,10000000), fromRational(558900,10000000)), List::cons(cmplx(fromRational(-239100,10000000), fromRational(-507500,10000000)), List::cons(cmplx(fromRational(-1021400,10000000), fromRational(-284700,10000000)), List::cons(cmplx(fromRational(-312000,10000000), fromRational(869900,10000000)), List::cons(cmplx(fromRational(766700,10000000), fromRational(-538200,10000000)), List::cons(cmplx(fromRational(-103800,10000000), fromRational(-519300,10000000)), List::cons(cmplx(fromRational(-1093800,10000000), fromRational(-156200,10000000)), List::cons(cmplx(fromRational(-160700,10000000), fromRational(-690600,10000000)), List::cons(cmplx(fromRational(-77700,10000000), fromRational(508300,10000000)), List::cons(cmplx(fromRational(-821800,10000000), fromRational(383000,10000000)), List::cons(cmplx(fromRational(-21700,10000000), fromRational(-623000,10000000)), List::cons(cmplx(fromRational(576500,10000000), fromRational(-112100,10000000)), List::cons(cmplx(fromRational(889200,10000000), fromRational(406700,10000000)), List::cons(cmplx(fromRational(400100,10000000), fromRational(645400,10000000)), List::cons(cmplx(fromRational(-773400,10000000), fromRational(773400,10000000)), List::cons(cmplx(fromRational(303000,10000000), fromRational(789100,10000000)), List::cons(cmplx(fromRational(471400,10000000), fromRational(-193200,10000000)), List::cons(cmplx(fromRational(-805300,10000000), fromRational(-747500,10000000)), List::cons(cmplx(fromRational(-359400,10000000), fromRational(753800,10000000)), List::cons(cmplx(fromRational(-303100,10000000), fromRational(727700,10000000)), List::cons(cmplx(fromRational(127500,10000000), fromRational(-13700,10000000)), List::cons(cmplx(fromRational(876900,10000000), fromRational(655200,10000000)), List::cons(cmplx(fromRational(0,10000000), fromRational(0,10000000)), List::cons(cmplx(fromRational(81500,10000000), fromRational(-850300,10000000)), List::cons(cmplx(fromRational(775300,10000000), fromRational(-753700,10000000)), List::cons(cmplx(fromRational(875700,10000000), fromRational(-480000,10000000)), List::cons(cmplx(fromRational(827100,10000000), fromRational(634200,10000000)), List::cons(cmplx(fromRational(328700,10000000), fromRational(629200,10000000)), List::cons(cmplx(fromRational(259700,10000000), fromRational(-300800,10000000)), List::cons(cmplx(fromRational(-244500,10000000), fromRational(337300,10000000)), List::cons(cmplx(fromRational(-552400,10000000), fromRational(552400,10000000)), List::cons(cmplx(fromRational(718800,10000000), fromRational(-143500,10000000)), List::cons(cmplx(fromRational(833200,10000000), fromRational(478600,10000000)), List::cons(cmplx(fromRational(-129400,10000000), fromRational(371600,10000000)), List::cons(cmplx(fromRational(83900,10000000), fromRational(-911700,10000000)),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -