OpenCores
URL https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [avalon_lib/] [sim/] [tests/] [tb_ast_monitor/] [the_test.sv] - Diff between revs 32 and 33

Show entire file | Details | Blame | View Log

Rev 32 Rev 33
Line 50... Line 50...
    // --------------------------------------------------------------------
    // --------------------------------------------------------------------
    tb_top.tb.timeout_stop(50us);
    tb_top.tb.timeout_stop(50us);
 
 
    // --------------------------------------------------------------------
    // --------------------------------------------------------------------
    // set_verbosity(VERBOSITY_DEBUG);
    // set_verbosity(VERBOSITY_DEBUG);
    tb_top.ast_source_i.st_source_bfm_i.init();
    tb_top.ast_source_i.bfm.init();
    tb_top.ast_sink_i.st_sink_bfm_i.init();
    tb_top.ast_sink_i.bfm.init();
 
 
    // --------------------------------------------------------------------
    // --------------------------------------------------------------------
    wait(~tb_rst);
    wait(~tb_rst);
 
 
    // --------------------------------------------------------------------
    // --------------------------------------------------------------------
    #200ns;
    #200ns;
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_data(0);
    tb_top.ast_source_i.bfm.set_transaction_data(32'h0000_0000);
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_sop(1);
    tb_top.ast_source_i.bfm.set_transaction_sop(1);
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_eop(0);
    tb_top.ast_source_i.bfm.set_transaction_eop(0);
    tb_top.ast_source_i.st_source_bfm_i.push_transaction();
    tb_top.ast_source_i.bfm.push_transaction();
 
 
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_data(1);
    tb_top.ast_source_i.bfm.set_transaction_data(32'h1111_1111);
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_sop(0);
    tb_top.ast_source_i.bfm.set_transaction_sop(0);
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_eop(0);
    tb_top.ast_source_i.bfm.set_transaction_eop(0);
    tb_top.ast_source_i.st_source_bfm_i.push_transaction();
    tb_top.ast_source_i.bfm.push_transaction();
 
 
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_data(2);
    tb_top.ast_source_i.bfm.set_transaction_data(32'h2222_2222);
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_sop(0);
    tb_top.ast_source_i.bfm.set_transaction_sop(0);
    tb_top.ast_source_i.st_source_bfm_i.set_transaction_eop(1);
    tb_top.ast_source_i.bfm.set_transaction_eop(1);
    tb_top.ast_source_i.st_source_bfm_i.push_transaction();
    tb_top.ast_source_i.bfm.push_transaction();
 
 
 
    tb_top.ast_source_i.bfm.set_transaction_data(32'h3333_3333);
 
    tb_top.ast_source_i.bfm.set_transaction_sop(1);
 
    tb_top.ast_source_i.bfm.set_transaction_eop(0);
 
    tb_top.ast_source_i.bfm.push_transaction();
 
 
 
    tb_top.ast_source_i.bfm.set_transaction_data(32'h4444_4444);
 
    tb_top.ast_source_i.bfm.set_transaction_sop(0);
 
    tb_top.ast_source_i.bfm.set_transaction_eop(0);
 
    tb_top.ast_source_i.bfm.push_transaction();
 
 
 
    tb_top.ast_source_i.bfm.set_transaction_data(32'h5555_5555);
 
    tb_top.ast_source_i.bfm.set_transaction_sop(0);
 
    tb_top.ast_source_i.bfm.set_transaction_eop(1);
 
    tb_top.ast_source_i.bfm.push_transaction();
 
 
 
 
    // --------------------------------------------------------------------
    // --------------------------------------------------------------------
    #200ns;
    #200ns;
    @(posedge tb_clk) tb_top.ast_sink_i.st_sink_bfm_i.set_ready(1);
    @(posedge tb_clk) tb_top.ast_sink_i.bfm.set_ready(1);
    @(posedge tb_clk) tb_top.ast_sink_i.st_sink_bfm_i.set_ready(0);
    @(posedge tb_clk) tb_top.ast_sink_i.bfm.set_ready(0);
    @(posedge tb_clk) tb_top.ast_sink_i.st_sink_bfm_i.set_ready(1);
    repeat(2) @(posedge tb_clk);
    @(posedge tb_clk) tb_top.ast_sink_i.st_sink_bfm_i.set_ready(0);
    tb_top.ast_sink_i.bfm.set_ready(1);
    @(posedge tb_clk) tb_top.ast_sink_i.st_sink_bfm_i.set_ready(1);
    @(posedge tb_clk) tb_top.ast_sink_i.bfm.set_ready(0);
    @(posedge tb_clk) tb_top.ast_sink_i.st_sink_bfm_i.set_ready(0);
    repeat(3) @(posedge tb_clk);
 
    tb_top.ast_sink_i.bfm.set_ready(1);
 
    repeat(3) @(posedge tb_clk);
 
    tb_top.ast_sink_i.bfm.set_ready(0);
 
    repeat(10) @(posedge tb_clk);
 
    tb_top.ast_sink_i.bfm.set_ready(1);
 
    @(posedge tb_clk) tb_top.ast_sink_i.bfm.set_ready(0);
 
 
 
 
    // --------------------------------------------------------------------
    // --------------------------------------------------------------------
    #1us;
    #1us;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.