完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
拜托帮忙看下,感激不尽。 需要做一个DDS,其中的查找表模块在波形仿真时出现问题,如图: 仿真后: 这是我的代码: LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_ARITH.ALL; USE IEEE.STD_LOGIC_UNSIGNED.ALL; ENtiTY ROM IS PORT (ADDR:IN STD_LOGIC_VECTOR (7 DOWNTO 0); CLK:IN STD_LOGIC; OUTP:OUT SIGNED (7 DOWNTO 0)); END ENTITY ROM; ARCHITECTURE ART OF ROM IS BEGIN PROCESS (CLK) IS BEGIN IF (CLK'EVENT AND CLK='1') THEN CASE ADDR IS WHEN "00000000"=>OUTP<="00000000"; WHEN "00000001"=>OUTP<="00000010"; WHEN "00000010"=>OUTP<="00000011"; WHEN "00000011"=>OUTP<="00000101"; WHEN "00000100"=>OUTP<="00000110"; WHEN "00000101"=>OUTP<="00001000"; WHEN "00000110"=>OUTP<="00001001"; WHEN "00000111"=>OUTP<="00001011"; WHEN "00001000"=>OUTP<="00001101"; WHEN "00001001"=>OUTP<="00001110"; WHEN "00001010"=>OUTP<="00010000"; WHEN "11101001"=>OUTP<="11011100"; WHEN "11101010"=>OUTP<="11011110"; WHEN "11101011"=>OUTP<="11011111"; WHEN "11101100"=>OUTP<="11100001"; WHEN "11101101"=>OUTP<="11100010"; WHEN "11101110"=>OUTP<="11100100"; WHEN "11101111"=>OUTP<="11100101"; WHEN "11110000"=>OUTP<="11100111"; WHEN "11110001"=>OUTP<="11101001"; WHEN "11110010"=>OUTP<="11101010"; WHEN "11110011"=>OUTP<="11101100"; WHEN "11110100"=>OUTP<="11101101"; WHEN "11110101"=>OUTP<="11101111"; WHEN "11110110"=>OUTP<="11110000"; WHEN "11110111"=>OUTP<="11110010"; WHEN "11111000"=>OUTP<="11110011"; WHEN "11111001"=>OUTP<="11110101"; WHEN "11111010"=>OUTP<="11110111"; WHEN "11111011"=>OUTP<="11111010"; WHEN "11111100"=>OUTP<="11111011"; WHEN "11111101"=>OUTP<="11111101"; WHEN "11111110"=>OUTP<="11111110"; WHEN "11111111"=>OUTP<="00000000"; WHEN OTHERS=>OUTP<="00000000"; END CASE; END IF; END PROCESS; END ARCHITECTURE ART; 拜托大家帮我看一下,感激不尽。 |
|
相关推荐
1个回答
|
|
求救啊啊啊求救啊啊啊啊!!!!!!
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
LDO线性稳压器产生了模拟电源与数字电源,模拟电源去给运放供电,他们的地是不是同一个地?
1554 浏览 2 评论
1421 浏览 1 评论
1059 浏览 0 评论
2517 浏览 1 评论
ad把一个15mm*1.5mm的灯放到直径15mm的圆形pcb板上,可以实现吗
2271 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 01:41 , Processed in 0.478383 second(s), Total 44, Slave 35 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号