An electronic unit includes a first circuit board having a power semiconductor device and an electrolytic capacitor and a second circuit board having an electronic component to control the power semiconductor device. The second circuit board is arranged perpendicular to the first circuit board and along the surface of the electrolytic capacitor. The electronic unit further includes a connecting member being jointed at one end thereof to the first circuit board and jointed at the other end thereof to the second circuit board for electrical connection between the first and second circuit boards.