| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- //`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 DspInterfaceTb
- ();
- //================================================================================
- // REG/WIRE
- //================================================================================
- reg Clk_i;
- reg Rst_i;
- reg start;
- reg [31:0] MeasDataPattern1;
- reg [31:0] MeasDataPattern2;
- //================================================================================
- // ASSIGNMENTS
- //================================================================================
- //================================================================================
- // CODING
- //================================================================================
- always #10 Clk_i = ~Clk_i;
- initial begin
- Clk_i = 1'b1;
- Rst_i = 1'b1;
- start = 1'b0;
- MeasDataPattern1 = 32'hAAAAAAAA;
- MeasDataPattern2 = 32'hBBBBBBBB;
- #100;
- Rst_i = 1'b0;
- #200;
- start = 1'b1;
- #20;
- start = 1'b0;
- #100;
- MeasDataPattern1 = 32'hCCCCCCCC;
- MeasDataPattern2 = 32'hDDDDDDDD;
- #1000;
- start = 1'b1;
- #20;
- start = 1'b0;
- end
- DspInterface
- #(
- .ODataWidth (16),
- .ResultWidth (32),
- .ChNum (4),
- .CmdRegWidth (32),
- .CmdDataRegWith (24),
- .HeaderWidth (7),
- .DataCntWidth (5)
- )
- DspInterfaceInst
- (
- .Clk_i (Clk_i),
- .Rst_i (Rst_i),
-
- .Mosi_i (1'b0),
- .Sck_i (1'b0),
- .Ss_i (1'b0),
-
- .Mosi_o (),
- .Sck_o (),
- .Ss0_o (),
- .Ss1_o (),
- .Miso_i (1'b0),
- .Miso_o (),
-
- .CmdDataReg_o (),
- .CmdDataVal_o (),
-
- .AnsReg_i (32'b0),
- .AnsAddr_o (),
- .LpOutFs_o (),
- .LpOutClk_o (),
- .LpOutData_o (),
-
- .Adc1T1ImResult_i (MeasDataPattern1),
- .Adc1T1ReResult_i (MeasDataPattern2),
- .Adc1R1ImResult_i (MeasDataPattern1),
- .Adc1R1ReResult_i (MeasDataPattern2),
-
- .Adc2R2ImResult_i (MeasDataPattern1),
- .Adc2R2ReResult_i (MeasDataPattern2),
- .Adc2T2ImResult_i (MeasDataPattern1),
- .Adc2T2ReResult_i (MeasDataPattern2),
- .ServiseRegData_i (32'h8),
- .LpOutStart_i (start)
- );
- endmodule
|