Black-Box Modeling of Digital Devices