Bitstream Interpretation Library (BIL)
0.1
|
Visitor for checking syntax of a Virtex-5 bitstream. More...
#include <bitstream/V5BitstreamSyntaxChecker.hpp>
Public Member Functions | |
V5BitstreamSyntaxChecker () | |
bool | behindSyncWord () const |
Tells, if sync word was passed. | |
bool | lastPacketWasType1 () const |
Tells, if the last packet processed was a type 1 packet. | |
RegisterAddress::address_t | lastType1Address () const |
Gets the register address of the last processed type 1 packet. | |
virtual void | reset () |
Resets the internal state. | |
virtual void | visit (const BuswidthPattern &buswidthPattern) |
Visits a BuswidthPattern packet. | |
virtual void | visit (const DummyWord &dummyWord) |
Visits a DummyWord packet. | |
virtual void | visit (const SyncWord &syncWord) |
Visits a SyncWord packet. | |
virtual void | visit (const Type1Packet &type1Packet) |
Visits a Type1Packet packet. | |
virtual void | visit (const Type2Packet &type2Packet) |
Visits a Type2Packet packet. | |
Public Member Functions inherited from bil::V5PacketVisitor | |
virtual void | visit (const Packet &packet) |
Irrelevant visit() method for Virtex-5 bitstreams. | |
Public Member Functions inherited from bil::PacketVisitor | |
virtual | ~PacketVisitor () |
Visitor for checking syntax of a Virtex-5 bitstream.
A Packet visitor that checks the syntactical correctness of a Virtex-5 bitstream. That means, that the packets have to be in the right order and number, and have to be of types that are valid for Virtex-5 bitstreams. Every time a packet is given to a V5BitstreamSyntaxChecker instance, it updates its state. In case of a syntax error it throws an exception.
Definition at line 24 of file V5BitstreamSyntaxChecker.hpp.
V5BitstreamSyntaxChecker::V5BitstreamSyntaxChecker | ( | ) |
Definition at line 12 of file V5BitstreamSyntaxChecker.cpp.
bool V5BitstreamSyntaxChecker::behindSyncWord | ( | ) | const |
Tells, if sync word was passed.
Definition at line 18 of file V5BitstreamSyntaxChecker.cpp.
bool V5BitstreamSyntaxChecker::lastPacketWasType1 | ( | ) | const |
Tells, if the last packet processed was a type 1 packet.
Definition at line 24 of file V5BitstreamSyntaxChecker.cpp.
RegisterAddress::address_t V5BitstreamSyntaxChecker::lastType1Address | ( | ) | const |
Gets the register address of the last processed type 1 packet.
Definition at line 30 of file V5BitstreamSyntaxChecker.cpp.
|
virtual |
Resets the internal state.
Reimplemented in bil::V5PacketProcessor, and bil::V5BitstreamDeviceDetector.
Definition at line 36 of file V5BitstreamSyntaxChecker.cpp.
|
virtual |
Visits a BuswidthPattern packet.
buswidthPattern | BuswidthPattern instance to be visited. |
. |
Reimplemented from bil::V5PacketVisitor.
Reimplemented in bil::V5BitstreamXMLWriter.
Definition at line 45 of file V5BitstreamSyntaxChecker.cpp.
|
virtual |
Visits a DummyWord packet.
Never throws, since dummy words can be everywhere.
dummyWord | DummyWord instance to be visited. |
Reimplemented from bil::V5PacketVisitor.
Reimplemented in bil::V5PacketProcessor, and bil::V5BitstreamXMLWriter.
Definition at line 53 of file V5BitstreamSyntaxChecker.cpp.
|
virtual |
Visits a SyncWord packet.
syncWord | SyncWord instance to be visited. |
. |
Reimplemented from bil::V5PacketVisitor.
Reimplemented in bil::V5BitstreamXMLWriter.
Definition at line 60 of file V5BitstreamSyntaxChecker.cpp.
|
virtual |
Visits a Type1Packet packet.
type1Packet | Type1Packet instance to be visited. |
. |
Reimplemented from bil::V5PacketVisitor.
Reimplemented in bil::V5BitstreamXMLWriter, bil::V5BitstreamDeviceDetector, and bil::V5PacketProcessor.
Definition at line 69 of file V5BitstreamSyntaxChecker.cpp.
|
virtual |
Visits a Type2Packet packet.
type2Packet | Type2Packet instance to be visited. |
. |
Reimplemented from bil::V5PacketVisitor.
Reimplemented in bil::V5BitstreamXMLWriter, bil::V5BitstreamDeviceDetector, and bil::V5PacketProcessor.
Definition at line 79 of file V5BitstreamSyntaxChecker.cpp.