完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
因为我是新手。
帮助我把这个代码放在一个函数或一个程序(这是合适的)中,这样我就可以在主程序中调用它,当需要时......?for 7 in downto 0 loop a7_parse(j):= ParseFinalMt(New_s1); New_s1:= New_s1-1; 结束循环;其中a7_parse是std_logic_vector的变量(7 downto 0); 和ParseFinalMt在std_logic_vector(335 downto 0)中,New_s1是整数类型的变量。 以上来自于谷歌翻译 以下为原文 as i am a newbie pls. help me out to put this code in a function or a procedur( which ever is suitable) so that i can call this in the main program as and when required...? for j in 7 downto 0 loop a7_parse(j):=ParseFinalMt(New_s1); New_s1:=New_s1-1; end loop; where a7_parse is an variable of std_logic_vector(7 downto 0); and ParseFinalMt is in std_logic_vector(335 downto 0 ) and New_s1 is variable of type integer. |
|
相关推荐
1个回答
|
|
|
任何好的VHDL文本都将解释如何编写函数或过程。
我推荐Ashenden的书。 使用Google。 ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 Any good VHDL text will explain how to code a function or a procedure. I recommend Ashenden's book. Use the Google. ----------------------------Yes, I do this for a living. |
|
|
|
|
只有小组成员才能发言,加入小组>>
3148 浏览 7 评论
3437 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2899 浏览 9 评论
4100 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
3083 浏览 15 评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
1363浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
1201浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-14 15:55 , Processed in 0.607955 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
915
