module funct(clk,n,result,reset); output[31:0] result; input[3:0] n; input reset,clk; reg[31:0] result; always @(posedge cl…
OPA 源代码
光学参量放大器(optical parameter放大器,简称OPA)是通过应用光学参量生成(简称OPG)来执行激光的波长转换的装置的总称。
module MAC(out,opa,opb,clk,clr); output[15:0] out; input[7:0] opa,opb; input clk,clr; wire[15:0] sum; reg[15:0] out; funct…
'timescale 1ns/1ns `include "mac.v" module mac_tp; reg[7:0] opa,opb; reg clr,clk; wire[15:0] out; parameter DELY = 100; M…
module funct(clk,n,result,reset); output[31:0] result; input[3:0] n; input reset,clk; reg[31:0] result; always @(posedge cl…
module funct(clk,n,result,reset); output[31:0] result; input[3:0] n; input reset,clk; reg[31:0] result; always @(posedge cl…
#include #include long mult_hi(long opa,long opb){ long opa_abs,opb_abs,result_hi,result_lo; long mult_hi_i,mult_hi_j;…
`timescale 1ns/100ps module gcd_tb; reg START,RST,CLK; reg [31:0] OPA,OPB; wire DONE; wire [31:0] RESULT; GCD …
module MAC(out,opa,opb,clk,clr); output[15:0] out; input[7:0] opa,opb; input clk,clr; wire[15:0] sum; reg[15:0] out; funct…
'timescale 1ns/1ns `include "mac.v" module mac_tp; reg[7:0] opa,opb; reg clr,clk; wire[15:0] out; parameter DELY = 100; M…
module funct(clk,n,result,reset); output[31:0] result; input[3:0] n; input reset,clk; reg[31:0] result; always @(posedge cl…