找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

查看: 3213|回复: 2

questions on verilog pipeline

[复制链接]
发表于 2008-11-21 20:25:05 | 显示全部楼层 |阅读模式

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

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

×
hi,everyone
i have several questions about how to implement a pipeline with verilogHDL.

1. is the example below acts as a pipeline adder ?
module MY_CHIP(A, B, CIN, Clock_In, SUM, COUT);
   input CIN;
   input [7:0]A,B;
   input Clock_In;
   output [7:0]SUM;
   reg    [7:0]SUM;
   output COUT;
   reg    COUT;
   reg    [3:0]SUM1;
   reg    COUT1;
   always @(posedge Clock_In)
      begin
         {COUT1,SUM1} = A[3:0] + B[3:0] + CIN;
      end
   always @(posedge Clock_In)
      begin
         {COUT,SUM} = {A[7:4]+B[7:4]+COUT1,SUM1};
      end
endmodule



2. how to design a multi-level pipeline of many modules,e.g. 4 modules,with verilogHDL ?
    and if these modules have different clock cycles ?
    (and a simple question: how to find the number of clock cycle of one module ? )

a newer of pipeline field, pls give me some advise.
and thanks in advance !
头像被屏蔽
发表于 2008-11-21 21:54:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2023-3-30 20:51:39 | 显示全部楼层
kkkkkkkk
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则


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

GMT+8, 2026-1-15 23:42 , Processed in 0.030931 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表