I'd like to know if there is a way for me to have a strobed master that drives the ready out port LOW once data is beeing sent and HIGH once the transmission has finnished.
It is either that I'm blind, or no such thing is mentioned in xs1.h
Here' the discription given in xs1.h
Code: Select all
/**
* Configures a buffered port to be a clocked output port in strobed master mode.
* If the ready-out port is not a 1-bit port, an exception is raised.
* The port drives the initial value on its pins until an
* output statement changes the value driven. Outputs are driven on the next
* falling edge of the clock. On the falling edge of the clock the ready-out
* port is driven high if data is output on that edge, otherwise it is driven
* low.
* \param p The buffered port to configure.
* \param readyout A 1-bit port to use for the ready-out signal.
* \param clk The clock used to configure the port.
* \param initial The initial value to output on the port.
* \sa configure_in_port_handshake
* \sa configure_out_port_handshake
* \sa configure_in_port_strobed_master
* \sa configure_in_port_strobed_slave
* \sa configure_out_port_strobed_slave
* \sa configure_in_port
* \sa configure_out_port
*/
void configure_out_port_strobed_master(void port p, out port readyout,
const clock clk, unsigned initial);