function qammap_config(this_block)
% Revision History:
%
% 19-May-2010 (14:48 hours):
% Original code was machine generated by Xilinx's System Generator after parsing
% C:\Users\Administrator\Desktop\QAM\qammap.v
%
%
this_block.setTopLevelLanguage('Verilog');
this_block.setEntityName('qammap');
% System Generator has to assume that your entity has a combinational feed through;
% if it doesn't, then comment out the following line:
this_block.tagAsCombinational;
this_block.addSimulinkInport('i');
this_block.addSimulinkInport('q');
this_block.addSimulinkInport('reset');
this_block.addSimulinkOutport('i_map');
this_block.addSimulinkOutport('q_map');
i_map_port = this_block.port('i_map');
i_map_port.setType('Fix_3_0');
q_map_port = this_block.port('q_map');
q_map_port.setType('Fix_3_0');
% -----------------------------
if (this_block.inputTypesKnown)
% do input type checking, dynamic output type and generic setup in this code block.
if (this_block.port('i').width ~= 2);
this_block.setError('Input data type for port "i" must have width=2.');
end
if (this_block.port('q').width ~= 2);
this_block.setError('Input data type for port "q" must have width=2.');
end
if (this_block.port('reset').width ~= 1);
this_block.setError('Input data type for port "reset" must have width=1.');
end
this_block.port('reset').useHDLVector(false);
end % if(inputTypesKnown)
% -----------------------------
% System Generator found no apparent clock signals in the HDL, assuming combinational logic.
% -----------------------------
if (this_block.inputRatesKnown)
inputRates = this_block.inputRates;
uniqueInputRates = unique(inputRates);
outputRate = uniqueInputRates(1);
for i = 2:length(uniqueInputRates)
if (uniqueInputRates(i) ~= Inf)
outputRate = gcd(outputRate,uniqueInputRates(i));
end
end % for(i)
for i = 1:this_block.numSimulinkOutports
this_block.outport(i).setRate(outputRate);
end % for(i)
end % if(inputRatesKnown)
% -----------------------------
% (!) Set the inout port rate to be the same as the first input
% rate. Change the following code if this is untrue.
uniqueInputRates = unique(this_block.getInputRates);
% Add addtional source files as needed.
% |-------------
% | Add files in the order in which they should be compiled.
% | If two files "a.vhd" and "b.vhd" contain the entities
% | entity_a and entity_b, and entity_a contains a
% | component of type entity_b, the correct sequence of
% | addFile() calls would be:
% | this_block.addFile('b.vhd');
% | this_block.addFile('a.vhd');
% |-------------
% this_block.addFile('');
% this_block.addFile('');
this_block.addFile('qammap.v');
return;
没有合适的资源?快使用搜索试试~ 我知道了~
16QAM的System Generator模型
共8个文件
log:4个
v:1个
htm:1个
4星 · 超过85%的资源 需积分: 26 30 下载量 124 浏览量
2010-06-13
23:47:16
上传
评论 2
收藏 26KB RAR 举报
温馨提示
自己用System Generator做的一个16QAM调制模型,里面附有星座图映射程序,希望对你有用
资源推荐
资源详情
资源评论
收起资源包目录
16QAM在SG中的模型.rar (8个子文件)
16QAM在SG中的模型
SysgenBlockDeprecationReport.htm 9KB
qam_map_sysgen.log 387B
qammap_config.m 3KB
qam_map.mdl 113KB
qammap_isim.log 668B
qammap.v 571B
qam_map_sysgen_warning.log 1013B
SysgenQAM16Demodulation_sysgen.log 387B
共 8 条
- 1
资源评论
- yumishou2013-03-10system generator搭建的QAM调制系统,整体结构很好
- lllzrr05132012-09-20system generator搭建的QAM调制系统,整体结构很好,不过可能是Matlab的版本问题,有一些错。
panda0609
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功