Architectural synthesis of digital systems by Stok