首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

汇编与C语言的对比学习!

回复:(剑在天涯)汇编与C语言的对比学习!

谢谢,支持下

编程风格

process(clk,Xre,Xim,sin,cos)
begin
if(clk'event and clk='1')then -- 一个时钟延迟
xi <= Xre(widthDAT-1 downto 0);
xq <= Xim(widthDAT-1 downto 0);
sin_reg <= sin; cos_reg <= cos;
end if;
end process;

process(Xre,Xim,sin,cos)
begin -- 只是缓存一下
xi <= Xre(widthDAT-1 downto 0);
xq <= Xim(widthDAT-1 downto 0);
sin_reg <= sin; cos_reg <= cos;
end process;

上面两种方式对输入信号的处理,哪种方式比较好呢?

返回列表