Validation objective
This reference system is designed to validate how a microcontroller and FPGA work together when control decisions, configuration and real-time processing are split across two different computing domains.
The focus is not simply whether the MCU can communicate with the FPGA, but whether the complete control path remains synchronized, deterministic and recoverable under real operating conditions.
Validation architecture
What we validate
- MCU-to-FPGA register access
- FPGA status reporting
- Interrupt signaling
- Command acknowledgement
- DMA or block-data transfer
- State synchronization
- Startup sequencing
- Error recovery
- System timing under load
Control-plane vs data-plane responsibilities
A useful design pattern is to separate control behavior from high-speed real-time processing.
Configuration, sequencing, state management, communication, diagnostics and product logic.
Deterministic interfaces, high-speed processing, parallel logic and precise hardware timing.
Registers, commands, status, interrupts and buffers connect the two processing domains.
Register interface validation
Control registers are often the simplest interface between firmware and FPGA logic.
The interface may contain:
- Configuration registers
- Status registers
- Command registers
- Error flags
- Version information
- Performance counters
Validation should confirm that register definitions are consistent between FPGA RTL and MCU firmware.
Command and acknowledgement behavior
Some FPGA operations cannot be represented by a simple static register. The MCU may issue a command and wait for hardware completion.
Typical sequences include:
- Start acquisition
- Stop acquisition
- Apply configuration
- Reset processing logic
- Clear an error condition
- Begin DMA transfer
Interrupt validation
FPGA logic can use interrupts to notify the MCU when an event requires software attention.
Typical interrupt sources include:
- Data-ready events
- DMA completion
- Threshold events
- Hardware faults
- Processing completion
Validation should confirm that interrupts are not lost, duplicated or serviced incorrectly under heavy system load.
Data transfer validation
Low-rate systems may exchange data through registers or SPI, while higher-throughput systems may require shared memory, DMA or wider parallel interfaces.
Important questions include:
- Who owns each buffer?
- When is data valid?
- How does the receiver know a transfer is complete?
- What happens if one side is slower?
- How are partial transfers handled?
State synchronization
The MCU and FPGA should agree about the current system state. Problems occur when software believes hardware is running while the FPGA is actually stopped, faulted or still initializing.
A useful state model may include:
- Reset
- Initializing
- Ready
- Running
- Stopping
- Fault
- Recovering
Startup sequencing
FPGA configuration and MCU startup may occur at different times. Firmware should not assume hardware is ready immediately after power-on.
Validation should confirm:
- FPGA configuration completes
- Clock domains are stable
- Reset sequence is correct
- Registers are accessible
- Hardware version is recognized
- Control commands are blocked until ready
Timing validation
The MCU often handles control in milliseconds while FPGA logic operates at hardware clock rates.
The system must therefore define where timing guarantees are required and where software latency is acceptable.
Suitable for precise timing and continuous processing.
Suitable for supervisory logic and millisecond-scale response.
Validation confirms that both timing domains work together correctly.
Fault injection
The reference platform should also be tested when expected behavior is deliberately interrupted.
- FPGA not ready at startup
- Invalid register value
- Missing interrupt
- Communication timeout
- DMA transfer failure
- Unexpected FPGA reset
- MCU restart while FPGA remains active
Recovery behavior
A robust system should return to a known state after faults whenever possible.
Recovery may include:
- Stopping active processing
- Clearing pending interrupts
- Resetting buffers
- Reinitializing FPGA state
- Restoring configuration
- Restarting the operating sequence
Useful validation metrics
- Command response latency
- Interrupt latency
- Register access time
- Data transfer throughput
- Timeout frequency
- Recovery time
- Control-loop timing
- Unexpected state transitions
Success criteria
MCU firmware and FPGA hardware maintain a shared understanding of system operation.
Critical control and hardware events remain within required timing boundaries.
Communication and hardware faults lead to controlled recovery instead of undefined operation.
What this reference system reveals
The platform helps separate faults caused by FPGA logic, MCU firmware, interface timing or system-level coordination.
This is especially useful when both sides appear to work independently but fail when integrated into the complete product.