|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
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 ! |
|