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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [bench/] [verilog/] [minsoc_bench.v] - Diff between revs 149 and 162

Show entire file | Details | Blame | View Log

Rev 149 Rev 162
Line 296... Line 296...
 
 
//
//
// Firmware testers
// Firmware testers
//
//
`ifdef UART
`ifdef UART
task test_uart();
task test_uart;
    begin
    begin
            @ (posedge new_line);
            @ (posedge new_line);
            $display("UART data received.");
            $display("UART data received.");
            hello = line[12*8-1:0];
            hello = line[12*8-1:0];
            //sending character A to UART, B expected
            //sending character A to UART, B expected
Line 321... Line 321...
    end
    end
endtask
endtask
`endif
`endif
 
 
`ifdef ETHERNET
`ifdef ETHERNET
task test_eth();
task test_eth;
    begin
    begin
                eth_tx_data[ETH_HDR+0] = 8'hBA;
                eth_tx_data[ETH_HDR+0] = 8'hBA;
                eth_tx_data[ETH_HDR+1] = 8'h87;
                eth_tx_data[ETH_HDR+1] = 8'h87;
                eth_tx_data[ETH_HDR+2] = 8'hAA;
                eth_tx_data[ETH_HDR+2] = 8'hAA;
                eth_tx_data[ETH_HDR+3] = 8'hBB;
                eth_tx_data[ETH_HDR+3] = 8'hBB;

powered by: WebSVN 2.1.0

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