Transferred from: http://blog.sina.com.cn/s/blog_56cbe89d01000bk4.html
http://czhjchina.blog.163.com/blog/static/20027904720126611912858/
Trigger: flipflop latch: Latch register: Register trigger: Includes latch and register. Latch: A level-triggered storage unit that can change data multiple times in the active level time. The advantage is that the trigger resource is small, the disadvantage is prone to burr. There is very little in the FPGA, because the triggers in the FPGA are very resource-rich. Register: An edge-triggered storage unit that changes in the data on the rising or falling edge, changing only once in a cycle. Deburring can be used to replace binary code counter with gray code counter, or the method of synchronization with D trigger. Good EPLD study site: http://www.pld.com.cn/advance.htm http://www.pld.com.cn/hdl/vhdl_example.htm PS: Wu Fei view, Trigger Is the two latches, with the same trigger and register. Summary: In fact, do not care whether it is a latch, register or trigger, as long as according to datasheet, with VHDL language true reaction truth table situation can be. Because of the discovery of some datasheet in the device is not too standardized, there is a suspicion of confusion.
the difference between register and memory
Modern computers mainly include level three storage, registers, internal memory and external memory, and the rate of data storage is decreasing in turn. (external memory is not in this discussion, let's skip it) we might as well abstract the register and the inner memory into a large array, where each element has a byte (8-bit) size, and the CPU is addressing it with the smallest unit of the element. If the address of the previous element is 0x1ffffff0, then the address of the next element is 0x1ffffff1. We can understand that the hardware composition of the register and the internal memory are also composed of a 8-bit-size component, which corresponds to the address of the element in the above mentioned array. Maybe you can see what I mean here. Aside from the storage rate, the registers and the internal memory structure can be considered the same for the software developers, so what's the difference?
Of course, the storage rate is different. Don't squalling the first ... The rate is only the surface phenomenon, the difference between register and memory essence or physical structure, register is composed of DFF (d flip-flop), it only temporarily stores data, the internal memory has MOS Gate and TTL gate, there are two kinds of ROM and RAM. ROM is manufactured by manufacturers fixed, but also divided into masking rom,prom,eprom,eerom. A ROM composed of useful gate circuits (written by the manufacturer) and a prom such as a diode or fuse that can be used by the user to write information ..... Ram can be divided into two kinds of DRAM and SRAM. The former is composed of capacitors must be refreshed in a timely manner, SRAM by the MOS door does not have to be refreshed ... From the place where the computer is located, the register is the most recent and fastest from the CPU on the motherboard. Memory in the computer host, at that time in the computer design, the speed has been raised not high, and then stored in the computer within the speed of the quality of the leap to reach more than 100M. Fast memory speed, small capacity, high price. External memory can be removed, such as discs, which are inexpensive, but slow, for storing large amounts of data. The specific differences between them skip the talk, I just want you to know that the two are the same in the principle of addressing.