
CAN FD v2.0
86
PG223 December 5, 2018
Chapter 5:
Example Design
IMPORTANT:
The XDC delivered with the example design is configured for the KC705 board. The I/O
constraints are commented by default. Remove the comments before implementing the example design
on the KC705 board.
Simulating the Example Design
For more information on Simulation, see the
Vivado Design Suite User Guide:
Logic
Simulation
(UG900)
Simulation Results
The simulation script compiles the CAN FD example design and supporting simulation files.
It then runs the simulation and checks to ensure that it completed successfully.
If the test passes, the following message is displayed:
Test Completed Successfully
If the test fails, the following message is displayed:
ERROR: Test Failed
If the test hangs, the following message is displayed:
ERROR: Test did not complete (timed-out)
Example Sequence
The demonstration test bench performs the following tasks:
• Writes the Baud Rate Prescaler register and Bit Timing registers for DUT and Partner.
• Programs ID Filter and Masks in Partner.
• Programs ID Filters and Masks in DUT (the programming sequence varies according to
FIFO or Mailbox mode).
• Acceptance filter is enabled in both nodes (applicable to DUT if configured in FIFO
mode).
• Enables the required interrupts in both CAN FD nodes.
• The Software Reset register is written to enable the CEN bit, which enables the DUT and
Partner.
• Writes two packets into DUT TX buffers (one CAN and one CAN FD). This demonstrates
the transmission packet priority in the core.