Is it possible to do IO opearations on a port using datavali Topic is solved

If you have a simple question and just want an answer.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Is it possible to do IO opearations on a port using datavali

Post by sethu_jangala »



View Solution
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

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 ;