Line 1... |
Line 1... |
/*
|
/*
|
Author: Sebastien Riou (acapola)
|
Author: Sebastien Riou (acapola)
|
Creation date: 17:16:40 01/09/2011
|
Creation date: 17:16:40 01/09/2011
|
|
|
$LastChangedDate: 2011-01-29 17:13:49 +0100 (Sat, 29 Jan 2011) $
|
$LastChangedDate: 2011-02-10 16:40:57 +0100 (Thu, 10 Feb 2011) $
|
$LastChangedBy: acapola $
|
$LastChangedBy: acapola $
|
$LastChangedRevision: 12 $
|
$LastChangedRevision: 14 $
|
$HeadURL: file:///svn/iso7816_3_master/iso7816_3_master/trunk/test/ComTxDriverTasks.v $
|
$HeadURL: file:///svn/iso7816_3_master/iso7816_3_master/trunk/test/ComTxDriverTasks.v $
|
|
|
This file is under the BSD licence:
|
This file is under the BSD licence:
|
Copyright (c) 2011, Sebastien Riou
|
Copyright (c) 2011, Sebastien Riou
|
|
|
Line 68... |
Line 68... |
input [16*257:0] bytesString;
|
input [16*257:0] bytesString;
|
integer i;
|
integer i;
|
reg [15:0] byteInHex;
|
reg [15:0] byteInHex;
|
reg [7:0] byteToSend;
|
reg [7:0] byteToSend;
|
begin
|
begin
|
for(i=16*256;i>=0;i=i-16) begin
|
i=16*257;
|
byteInHex=bytesString[i+:16];
|
getNextHexByte(bytesString, i, byteToSend, i);
|
if(16'h0!=byteInHex) begin
|
while(i!=-1) begin
|
byteToSend=hexString2Byte(byteInHex);
|
|
sendByte(byteToSend);
|
sendByte(byteToSend);
|
end
|
getNextHexByte(bytesString, i, byteToSend, i);
|
end
|
end
|
end
|
end
|
endtask
|
endtask
|
|
|
|
|
No newline at end of file
|
No newline at end of file
|