导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→发表看法:[yang547]虚心求教:用 FPGA 做高速 AD 转



No.40309
作者:yang547
邮件:yang547@yahoo.com.cn
ID:14435
登陆:3次
文章数:2篇
最后登陆IP:202.117.121.35
最后登陆:2003/8/24 22:41:05
注册:2003/8/18 14:47:46
财富:108
发帖时间:2003/8/18 14:55:50
发贴者IP:61.150.43.67
标题:yang547:虚心求教:用 FPGA 做高速 AD 转换时突然终止??
摘要:No.40309虚心求教:用 FPGA 做高速 AD 转换时突然终止?? 向各位大侠紧急求救!
打算让 fpga 接受到 start 信号后控制 adc 一次完成 2K 个数据的采集并送入双口 ram ,但有时会中途停止,不知道是不是程序上的问题?希望高手不吝赐教!(副VHDL程序)

library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;

entity ad_vhd_final1 is
port(reset : in std_logic;
     start : in std_logic;
     clk   : in std_logic;
     data_in : in std_logic_vector(7 downto 0);
     data_out: out std_logic_vector(7 downto 0);
     addr  : out std_logic_vector(10 downto 0);
     flag  : out std_logic;
     encode_out : out std_logic;
     ce    : out std_logic;
     we       : out std_logic;
     oe    : out std_logic);
end ad_vhd_final1;

architecture a of ad_vhd_final1 is
signal encode : std_logic;
signal data : std_logic_vector(7 downto 0);
signal count: std_logic_vector(10 downto 0);
type states is (s0,s1,s2,s3);
signal state : states;
begin
    encode_out   <= encode;
    data_out   <= data;
    addr   <= count;
    
----------------------------------- ad ouput data latch ----------------------------------
    process(reset,encode)
    begin
        if reset='1' then data   <= "00000000";
        elsif encode'event and encode='0' then data   <= data_in;
        end if;
    end process;
---------- ......

>>返回讨论的主题



  发表回复
用户名   *您没有注册?
密码   *
验证码   * .
标题   *
心情
随便说说    我回答你    最新发现    得意的笑   
气死我了    真是没劲    坚决同意    表示反对   
大家过来    好奇怪哟    懒得理它    大家小心   
文件上传
内容


字体:      字体大小:    颜色:
粗体 斜体 下划线 居中 超级连接 Email连接 图片 Flash图片 Shockwave文件 realplay视频文件 Media Player视频文件 QuickTime视频文件 引用 飞行字 移动字 发光字 阴影字 查看更多的心情图标 背景音乐
点击加入表情
                         
选项
有回复时用短消息通知您?

   




老古网执行:28毫秒 最大:78531毫秒 查询8次