URL
https://opencores.org/ocsvn/iso7816_3_master/iso7816_3_master/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 11 |
Rev 12 |
Line 1... |
Line 1... |
/*
|
/*
|
Author: Sebastien Riou (acapola)
|
Author: Sebastien Riou (acapola)
|
Creation date: 22:22:43 01/10/2011
|
Creation date: 22:22:43 01/10/2011
|
|
|
$LastChangedDate: 2011-01-29 13:16:17 +0100 (Sat, 29 Jan 2011) $
|
$LastChangedDate: 2011-01-29 17:13:49 +0100 (Sat, 29 Jan 2011) $
|
$LastChangedBy: acapola $
|
$LastChangedBy: acapola $
|
$LastChangedRevision: 11 $
|
$LastChangedRevision: 12 $
|
$HeadURL: file:///svn/iso7816_3_master/iso7816_3_master/trunk/test/DummyCard.v $
|
$HeadURL: file:///svn/iso7816_3_master/iso7816_3_master/trunk/test/DummyCard.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 159... |
Line 159... |
for(i=1;i<4;i=i+1)
|
for(i=1;i<4;i=i+1)
|
receiveByte(tpduHeader[(CLA_I-(i*8))+:8]);
|
receiveByte(tpduHeader[(CLA_I-(i*8))+:8]);
|
|
|
if(8'hFF==tpduHeader[CLA_I+:8]) begin
|
if(8'hFF==tpduHeader[CLA_I+:8]) begin
|
//support only PPS8 for the time being
|
//support only PPS8 for the time being
|
if(32'hFF789778==tpduHeader[7+CLA_I:P2_I]) begin
|
if(32'hFF109778==tpduHeader[7+CLA_I:P2_I]) begin
|
sendHexBytes("FF789778");
|
sendHexBytes("FF109778");
|
waitEndOfTx;
|
waitEndOfTx;
|
cyclesPerEtu <= 13'd8-1'b1;
|
cyclesPerEtu <= 13'd8-1'b1;
|
end
|
end
|
end else begin
|
end else begin
|
//tpdu: get P3
|
//tpdu: get P3
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.