St Mirren booked their return to Mount Florida with a penalty shoot-out win over Kilmarnock, and will come up against Betfred Cup winners St Johnstone – who pipped the Paisley side for a place in the top six earlier this month.
There is also a re-run of the 2016 semi-final between Hibs and Dundee United – which Hibs won on penalties en route to lifting the trophy.
Penalties were the order of the quarter finals with three of the four matches being decided by shoot-outs to decide who heads to Hampden on May 8 and 9.
Dundee United were the only side to enter the penultimate round within regulation time when they defeated Aberdeen 3-0 on Sunday.
St Johnstone also qualified for the final four with a dramatic penalty shoot-out win over Rangers – with goalkeeper Zander Clark grabbing the headlines for his role in the Perth side’s success. Hibs were also taken all th way to spot-kicks by Motherwell at Easter Road on Saturday.
Livingston captain Marvin Bartley made the draw live on BBC Scotland and lined up the re-run of his semi-final success five years later.
The matches, which will be played at the National Stadium on weekend of May 8 and 9, will be televised live by Premier Sports. The final will be held at Hampden on May 22.