Thanks for your rely! Yes, I know normally cmos bulk should be connected like what you say. However, diode is not avaliable to be integrated in IC design, right?. So I want to find a MOS diode, just function as an ideal diode(two port component) not the load as describe on the textbook. The schematic I post is quoted from a paper, I just confused about which port is the positive and which port is negative. And how to implement a diode if I want to use NMOS?