multiply_test.v

来自「verilog multiply algorithm」· Verilog 代码 · 共 26 行

V
26
字号
module multiply_test();

parameter width=8;      //lungimea operanzilor
parameter width1=16;     //lungimea produsului, dublul operanzilor

wire [width-1:0]  a,b;
wire              ck,reset,ld,tercnt;
wire [width1-1:0] produs;

multiply #(width,width1)        DUT(.ck(ck),
                                    .reset(reset),
                                    .ld(ld),
                                    .a(a),
                                    .b(b),
                                    .produs(produs),
                                    .tercnt(tercnt)
                                    );

multiply_tb #width TB(.ck(ck),
                      .reset(reset),
                      .ld(ld),
                      .a(a),
                      .b(b)
                      );

endmodule 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?