A clocked port can interpret a ready-in strobe signal that determines the validity of the accompanying data. The example below inputs data from a clocked port only when a ready-in signal is high.
The following statement configures the input port inP to be sampled only when the value sampled on the port inReady equals 1. The ready-in port must be 1-bit wide.
configure_in_port_strobed_slave (inP , inReady , clk );
Data is sampled on the rising edge of the clock whenever the ready-in signal is high. The port samples two 4-bit values and combines them to produce a single 8-bit value for input by the processor.
inP :> void ;
Is it possible to do IO opearations on a port using datavali Topic is solved
-
- XCore Expert
- Posts: 589
- Joined: Wed Feb 29, 2012 10:03 am
-
- XCore Expert
- Posts: 589
- Joined: Wed Feb 29, 2012 10:03 am