Hello, I'm Mass Man.
In the previous column, we confirmed that the JTAG wiring was working correctly with "Auto Detect" and that the device was booting.
However, sometimes the configuration of Masuo's board succeeded, and sometimes it failed, and the operation was very unstable.
I tried to monitor the configuration error
The table below is a quote from Hachi-senpai's column "Configuration Sequence".
| Signal name | attribute | value | explanation |
| nCONFIG | input | High | start configuration |
| Low | FPGA in reset state (POR in progress) | ||
| nSTATUS | Bi-directional open-drain | 出力 = High | Normal configuration state |
| 出力 = Low | configuration error | ||
| Input = High | Normal configuration state | ||
| 入力 = Low | error state | ||
| CONF_DONE | Bi-directional open-drain | Output = High (released) | Configuration data reception complete |
| 出力 = Low | Before/during configuration |
I observed nCONFIG, nSTATUS and CONF_DONE on my oscilloscope (Figure 1).
Figure 1. Sequence of configuration/failure
・When nCONFIG becomes High, configuration starts.
・nSTATUS is a signal to monitor the configuration.
From Figure 1, you can see that the configuration continues to fail, repeating Low (failure) and High (retry).
・CONF_DONE becomes High when configuration data reception is completed.
From Figure 1, you can see how it stays low all the time and does not complete configuration.
Power and GND wiring is the main artery of the board
Senior: "The GND wiring that connects to the FPGA is a thin wire."
Masuo: "It's a thin wire, but it's connected to GND, right?"
Senior: "If the current capacity of the power supply and GND wiring is small, a sufficient current cannot flow, so the entire board cannot operate normally. The power supply and GND wiring are the main artery of the board."
This is the wiring on the back side of Masuo's board (Fig. 2).
The GND wiring connected to the FPGA was a thin wire (blue), and the GND was designed to be very weak.
Figure 2. Weak GND
I used double the thickness wire to increase the current carrying capacity and strengthen the GND (Figure 3).
Figure 3. After GND enhancement
By strengthening the GND, configuration was always successful and board operation was stable.
Figure 4 shows the configuration sequence measured with an oscilloscope after GND hardening.
Figure 4. Successful configuration sequence
From Figure 4, you can see how the CONF_DONE pin went High because the configuration data reception was completed.
Senpai: “Did you design considering the amount of current required for the entire board?”
Masuo: "We considered the voltage because the FPGA's absolute maximum ratings are specified, but we didn't think about the current."
Senior: "It's a bad design if you don't think about current. There's no way the board will move."
what i learned
The power and GND wiring is the main artery of the board.
You must design power supply and GND wiring that can supply the necessary current to the entire board.