The present invention provides a device for
multiplexing a digital-to-analog conversion circuit and an analog-to-
digital conversion circuit in a compute-in-
memory chip, which includes a digital-to-analog conversion circuit (DAC) module, an analog vector-
matrix multiplication operation circuit (AMAC) module, an analog-to-
digital conversion circuit (ADC) module, a first multi-to-one
multiplexer (M1-MUX) module, a second multi-to-one
multiplexer module, a first one-to-many
multiplexer (1M-MUX) module, a second one-to-many multiplexer module, and a switching
transistor module. At the input end of the AMAC, each DAC corresponds to
multiple input ports, which are shared in a time-division
multiplexing manner through the first M1-MUX module and the first 1M-MUX module; at the output end of the AMAC, each ADC corresponds to multiple output ports, which are shared in a time-division
multiplexing manner through the second M1-MUX module and the second 1M-MUX module; the number of DACs and ADCs is reduced, and the
chip area is reduced.