This custom logic driver offers a way to initialize on-chip programmable logic units, so that a specific logic box is built. Then this "box" can be connected to an internal or external circuit to perform the logic operations.
Initialize and deinitialize the driver and associated hardware
Enabling and disabling digital glue logic
Most custom logic parameters are configured in START. Many of these parameters are used by the custom_logic_init function when initializing the driver and underlying hardware (for example, CCL).
The implementation is simple in this driver and most custom logic parameters are static configuration.
The following shows a simple example of using the custom logic driver. The custom logic driver must have been initialized by custom_logic_init. This initialization will configure the operation of the hardware programmable logic instance.
/**
* Example of using DIGITAL_GLUE_LOGIC_0.
*/
void DIGITAL_GLUE_LOGIC_0_example(void)
{
custom_logic_enable();
/* Customer logic now works. */
}
Programmable logic control units, such as Configurable Custom Logic (CCL)