网站公告列表

  没有公告

加入收藏
设为首页
联系站长
您现在的位置: 61EDA中国电子网 >> 服务导航 >> 帮助中心 >> Xilinx >> 正文
  [组图]Pluse Expander 脉冲扩展           ★★★ 【字体:
Pluse Expander 脉冲扩展
作者:rickysu    文章来源:rickysu    点击数:    更新时间:2008-3-11    
利用SRL16,将一个时钟长度的脉冲扩展到16个时钟长度。

点击在新窗口中浏览此图片

点击在新窗口中浏览此图片



引用
module pluse_expand(pluse, clk, dout);
   input pluse;
   input clk;
   output dout;
   
wire srl_out;

SRL16 #(
  .INIT(16'h0000) // Initial Value of Shift Register
     ) SRL16_inst (
  .Q(srl_out), // SRL data output
  .A0(1'b1), // Select[0] input
  .A1(1'b1), // Select[1] input
  .A2(1'b1), // Select[2] input
  .A3(1'b1), // Select[3] input
  .CLK(clk), // Clock input
  .D(pluse) // SRL data input
  );
 
FDRE #(
  .INIT(1'b0) // Initial value of register (1'b0 or 1'b1)
     ) FDRSE_inst (
  .Q(dout), // Data output
  .C(clk), // Clock input
  .CE(pluse), // Clock enable input
  .D(pluse), // Data input
  .R(srl_out) // Synchronous reset input
//   .S(1'b0) // Synchronous set input
  );

endmodule
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    没有相关文章
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    湘ICP备08001332号 站长:61EDA