Tool/software:
Hi all,
I am looking an implement some fault detection logic on the CLB to help offload the CPU and to obtain a quicker response to potential input faults in my system. Currently, I am wondering if there is a way that 16-1 multiplexer logic can be solely implemented on the CLB. I need to be able to select each of the lines and watch a separate input pin watching for a logic low input. When this occurs, I need to stop and store the value of the counter in the GPREG so I can trigger a fault on my device and find out what line faulted on the MUX. Ideally, I have a method of masking off certain fields of the MUX before it generates the NMI to CPU1. I think I understand how I can do most of this, but I do have some questions on a few things.
1. If / how I can perform the MUX select logic within the CLB. At first I was hoping I could route the individual bits of the counter out of the CLB or create some LUT function that could perform similar functionality.
2. How can I apply a hardcoded mask to filter out specific inputs on the MUX via the lookup table or the HLC.
If there is a more proficient way to obtain this kind of logic without the CLB, I am open to this, too. I just need the majority of the logic to be independent of the CPU
Thank you