In Simulink ,the pn sequence generator(essential blk) in frame based mode s not being accepted by the hdl converter. But the output of the pn sequence generator is given to a serial to parallel converter. What cud b the alternative for this?
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Bharath Venkataraman
2014-2-20
Please check to see if the inputs are constants. If so, change the sample time on the constant block to be 1 or some such value.
One other thing you can do for your initial question is to get values to the PN sequence genrator serially, and take the output to a tap delay line from which you can get a list of multiple values. To ensure you get non-repeated values, you can use a downsample block right after the tap delay. Putting a uni delay block after the downsample genrates more efficient HDL code.
For a set of 10 values, PN Sequence (serial) -> Tap Delay (10) -> Downsample (10) -> Unit Delay
0 个评论
更多回答(3 个)
Tim McBrayer
2014-2-20
Frame based models are not supported by HDL Coder. You will need to convert your design to a sample based format. Frames can exist outside the portion of design being converted to HDL code, if necessary.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!