On the, the LEDs will all initially be switched on because of the wiring of the LEDs to the CPLD which effectively inverts the logic level on the CPLD pin. The shiftreg register is 8 bits wide and the VHDL code connects each bit in the register to an LED, so that 8 LEDs show the value in each bit of the register. This register is initialized with the value of 00h so that when power is switched on to the CPLD board, the register will be cleared. First Shift Register This example creates a shift register using a VHDL signal called shiftreg shown in the code listing below. Both VHDL code examples of the shift register behave in exactly the same way when implemented on the CPLD. This video shows the VHDL shift register in action.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |