|
Protocol++® (Protocolpp®)
v5.7.0
|


Public Member Functions | |
| jtestbench (ProtocolPP::platform_t platform, uint64_t seed, bool use_crypto, int responders, std::shared_ptr< jmmu > &mmu, std::shared_ptr< jlogger > &logger, std::shared_ptr< ProtocolPP::jdata > &indata, std::shared_ptr< jring< ringflow >> &fring, std::shared_ptr< jring< ringin >> &iring, std::shared_ptr< jring< ringout >> &oring, ProtocolPP::endian_t endianess=ProtocolPP::BIG) | |
| virtual | ~jtestbench ()=default |
| standard deconstructor | |
| uintptr_t | get_mem (std::string packet, uint32_t length) |
| void | write (uintptr_t address, uint32_t data) |
| void | write (uintptr_t address, uint64_t data) |
| uintptr_t | write (std::string packet, uint8_t *data, uint32_t length) |
| uintptr_t | write (std::string packet, uint32_t *data, uint32_t length) |
| uint32_t | read (uintptr_t address) |
| void | read (uintptr_t address, uint8_t *data, uint32_t length) |
| void | read (uintptr_t address, uint32_t *data, uint32_t length) |
| jtestbench (jtestbench &rhs)=delete | |
| jtestbench (const jtestbench &rhs)=delete | |
Public Member Functions inherited from InterfacePP::jproducer | |
| jproducer (ProtocolPP::platform_t platform, uint64_t seed, bool use_crypto, int responders, std::shared_ptr< jmmu > &mmu, std::shared_ptr< jlogger > &logger, std::shared_ptr< ProtocolPP::jdata > &indata, std::shared_ptr< jring< ringflow >> &fring, std::shared_ptr< jring< ringin >> &iring, std::shared_ptr< jring< ringout >> &oring, ProtocolPP::endian_t endianess=ProtocolPP::BIG) | |
| virtual | ~jproducer ()=default |
| standard deconstructor | |
| void | setup (ProtocolPP::jstream &stream) |
| void | issue (std::shared_ptr< ProtocolPP::jpacket > &packet) |
| void | release (const std::string &stream) |
| int | get_mode () |
| void | run () |
| run the testbench and issue packets | |
| void | process () |
| process the packets, status, post-processing | |
| uint32_t | get_status (std::string &packet) |
| uint64_t | get_field (ProtocolPP::field_t field) |
| jproducer (jproducer &rhs)=delete | |
| jproducer (const jproducer &rhs)=delete | |
Additional Inherited Members | |
Protected Attributes inherited from InterfacePP::jproducer | |
| std::shared_ptr< jmmu > | m_mmu |
| MMU for tracking memory. | |
| InterfacePP::jtestbench::jtestbench | ( | ProtocolPP::platform_t | platform, |
| uint64_t | seed, | ||
| bool | use_crypto, | ||
| int | responders, | ||
| std::shared_ptr< jmmu > & | mmu, | ||
| std::shared_ptr< jlogger > & | logger, | ||
| std::shared_ptr< ProtocolPP::jdata > & | indata, | ||
| std::shared_ptr< jring< ringflow >> & | fring, | ||
| std::shared_ptr< jring< ringin >> & | iring, | ||
| std::shared_ptr< jring< ringout >> & | oring, | ||
| ProtocolPP::endian_t | endianess = ProtocolPP::BIG |
||
| ) |
jtestbench uses protocol++ to drive packets into a ring which can then be read by any device that supports a ring
| platform | - Platform to connect testbench to (W.A.S.P or SEC) |
| seed | - seed for the testbench |
| use_crypto | - use cryptographic quality random numbers |
| responders | - number of responders used |
| mmu | - track memory |
| logger | - object to print output |
| indata | - JDATA object containing flows and packets |
| fring | - Software ring for the flows |
| iring | - Software ring for the input packets |
| oring | - Software ring for the output packets |
| endianess | - Endianess of the platform to support |
|
virtual |
Retrieve pointer to uninitialized memory
| packet | - Name of packet to write data for |
| length | - Length in bytes for memory location |
Implements InterfacePP::jproducer.
|
virtual |
Read function to overload in your testbench
| address | - Address to register |
Implements InterfacePP::jproducer.
|
virtual |
Read function to overload in your testbench
| address | - Address to read data from |
| data | - Retrieved data |
| length | - Length of data to read |
Implements InterfacePP::jproducer.
|
virtual |
Read function to overload in your testbench
| address | - Address to read data from |
| data | - Retrieved data |
| length | - Length of data to read |
Implements InterfacePP::jproducer.
|
virtual |
Write function to overload in your testbench
| packet | - Name of packet to write data for |
| data | - Word oriented data to write |
| length | - length of data to write |
Implements InterfacePP::jproducer.
|
virtual |
Write function to overload in your testbench
| packet | - Name of packet to write data for |
| data | - Data to write to memory |
| length | - length of data to write |
Implements InterfacePP::jproducer.
|
virtual |
Write function to overload in your testbench
| address | - Address to write data to |
| data | - Data to write to memory |
Implements InterfacePP::jproducer.
|
virtual |
Write function to overload in your testbench
| address | - Address to write data to |
| data | - Data to write to memory |
Implements InterfacePP::jproducer.