SWD (serial wire debug) is a debug interface ARM provided in replacement of the usual JTAG interface. The advantage is obvious: 2 wires needed vs. 4 wires. If you want to instantiate the ARM core in FPGA with SWD interface. Here is how you do it.
1. Declare Pin signals
2. Config the ARM core to use SWD instead of JTAG.
It is usually through a compile time parameter setting.
3. Connect the signals
// Optional BUFR for SWCLK, may help in timing
assign swclk = TCK ;
assign swdi = SWDIO ;
bufif1 (SWDIO, swdo, swden) ;
PULLUP U_SWDIO (SWDIO);
Pretty simple, right? Let us know how it works for you.