9 // this class implements the host-target interface for program loading, etc.
13 htif_t(int _tohost_fd
, int _fromhost_fd
);
15 void init(sim_t
* _sim
);
17 // wait for host to send start command
18 void wait_for_start();
20 // we block on the host if the target machine reads the fromhost register,
21 // which provides determinism in tohost/fromhost communication.
22 void wait_for_fromhost_write();
30 void nack(uint16_t seqno
);
31 void send_packet(packet
* p
);
32 int wait_for_packet();