Go to the documentation of this file.
42 #include "params/SimpleUart.hh"
83 SimpleUartParams::create()
void makeAtomicResponse()
Addr pioAddr
Address that the device listens to.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
ByteOrder byteOrder(const ThreadContext *tc)
uint64_t Tick
Tick count type.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
const ByteOrder byteOrder
uint64_t getUintX(ByteOrder endian) const
Get the data in the packet byte swapped from the specified endianness and zero-extended to 64 bits.
virtual bool dataAvailable() const =0
Check if there is pending data from the serial device.
void exitSimLoop(const std::string &message, int exit_code, Tick when, Tick repeat, bool serialize)
Schedule an event to exit the simulation loop (returning to Python) at the end of the current cycle (...
void setUintX(uint64_t w, ByteOrder endian)
Set the value in the word w after truncating it to the length of the packet and then byteswapping it ...
Addr pioSize
Size that the device's address range.
virtual uint8_t readData()=0
Read a character from the device.
SimpleUart(const SimpleUartParams *p)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Tick pioDelay
Delay that the device experinces on an access.
virtual void writeData(uint8_t c)=0
Transmit a character from the host interface to the device.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17