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

Subversion Repositories xge_mac

[/] [xge_mac/] [trunk/] [tbench/] [verilog/] [tb_xge_mac.sv] - Diff between revs 24 and 30

Show entire file | Details | Blame | View Log

Rev 24 Rev 30
Line 483... Line 483...
 
 
        if (count == 1) begin
        if (count == 1) begin
 
 
            for (i = 0; i < tx_length; i = i + 1) begin
            for (i = 0; i < tx_length; i = i + 1) begin
 
 
                count = $fscanf(file, "%2X", data);
                count = $fscanf(file, "%2x", data);
                if (count) begin
                if (count) begin
                    tx_buffer[i] = data;
                    tx_buffer[i] = data;
                end
                end
 
 
            end
            end
Line 514... Line 514...
        if (!file_cmd) $stop;
        if (!file_cmd) $stop;
 
 
        while (!$feof(file_cmd)) begin
        while (!$feof(file_cmd)) begin
 
 
            count = $fscanf(file_cmd, "%s", str);
            count = $fscanf(file_cmd, "%s", str);
            if (count != 1) continue;
            if (count == 1) begin
 
 
            $display("CMD %s", str);
            $display("CMD %s", str);
 
 
            case (str)
            case (str)
 
 
Line 526... Line 526...
                begin
                begin
                    CmdTxPacket(file_cmd);
                    CmdTxPacket(file_cmd);
                end
                end
 
 
            endcase
            endcase
 
            end
 
 
        end
        end
 
 
        $fclose(file_cmd);
        $fclose(file_cmd);
 
 

powered by: WebSVN 2.1.0

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