在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2987|回复: 0

请教高手vhdl程序问题

[复制链接]
发表于 2009-8-5 16:19:44 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
也是关于两个FPGA之间的高速传输,传输速度100MHZ. 只有两个传输线,一个作为发送一个作为接收。我现在用vhdl编写了一个程序发送1个起始位,8个数据位,1个停止位,但是不知道要怎样开始传输过程。请高手帮帮忙,要怎样开始传输呢,非常感谢。

process(clk100p)
begin
if(clk100p 'event and clk100p = '1') then
         startsr(0) <= start;
   startsr(1) <= startsr(0);
   if (startsr(0) = '1' and startsr(1)= '0') then
          dataout <= '0';
        count <= "0000";
        schiebereg <= sendedaten;
        enable <= '1';
   else
      if enable <= '1' then
         if zaehl <= 9 then
          zaehl <= 0;
       else
         zaehl<= zaehl+1;
       if zaehl <= 0 then
              if count < "1001" then
                         dataout <= schiebereg(0);
             schiebereg(8 downto 0)<= schiebereg(9 downto 1);
             count <= count + '1';
            else
              if count = "1001" then
               dataout <= '1';
                     count <= count + '1';
            end if;
        end if;
             end if;
              end if;
    end if;
   end if;
end if;
end process;
end Behavioral;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-9-27 15:25 , Processed in 0.026064 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表