| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- //`timescale 1ns / 1ps
- //////////////////////////////////////////////////////////////////////////////////
- // company:
- // engineer:
- //
- // create date: 16:37:06 07/11/2019
- // design name:
- // module name: dsp_linkport_interface
- // project name:
- // target devices:
- // tool versions:
- // description:
- //
- // dependencies:
- //
- // revision:
- // revision 0.01 - file created
- // additional comments:
- //
- //////////////////////////////////////////////////////////////////////////////////
- module DspPpiOutTb
- ();
- //================================================================================
- // REG/WIRE
- //================================================================================
- reg Clk_i;
- reg Rst_i;
- reg start;
- //================================================================================
- // ASSIGNMENTS
- //================================================================================
- //================================================================================
- // CODING
- //================================================================================
- always #10 Clk_i = ~Clk_i;
- initial begin
- Clk_i = 1'b1;
- Rst_i = 1'b1;
- start = 1'b0;
- #100;
- Rst_i = 1'b0;
- #100;
- start = 1'b1;
- #20;
- start = 1'b0;
- end
- DspPpiOut
- #(
- .ODataWidth (16),
- .ResultWidth (32),
- .ChNum (8)
- )
- MeasDataPpiOut
- (
- .Rst_i (Rst_i),
- .Clk_i (Clk_i),
- //adc1
- .Adc1T1ImResult_i (32'd1),
- .Adc1T1ReResult_i (32'd0),
- .Adc1R1ImResult_i (32'd1),
- .Adc1R1ReResult_i (32'd0),
- //adc2
- .Adc2T2ImResult_i (32'd1),
- .Adc2T2ReResult_i (32'd0),
- .Adc2R2ImResult_i (32'd1),
- .Adc2R2ReResult_i (32'd0),
- //sts data reg
- .ServiseRegData_i (32'd3),
-
- .LpOutStart_i (start),
-
- .LpOutClk_o (),
- .LpOutFs_o (),
- .LpOutData_o ()
- );
- endmodule
|