DEF => Design Exchange Format,
Design Exchange Format (DEF) is an open specification for representing physical layout of an integrated circuit in an ASCII format. It represents the netlist and circuit layout. DEF is used in conjunction with LEF to represent complete physical layout of an integrated circuit while it is being designed.
GDS II stream format, commonly known as GDSII is a database format, which in the integrated circuit industry has been the de facto standard for IC layout data exchange for more than two decades
Originally it was designed as a format of data files used to control integrated circuit photomask plotting. Despite its limited set of features and low data density, it was ubiquitously used for transfer IC layout data between design tools from different vendors which operated with proprietary data formats.
GDSII files are considered to be the final output of the IC design cycle and are passed to IC foundries for IC fabrication. These GDSII files were originally produced on magnetic tapes, hence the final moment of the IC design process became known as tapeout