Reg led_temp = 16'b0000000000000000 //temp reg used in always block to asssign sda valuesĬount = 4) & (SD_COUNTER = 25) & (SD_COUNTER <= 49))) ? ~CLK : SCLK these are the registers used for 7 segment display counter for multiplexing seven segment display Reg dp = 1'b1 //decimal point for 7 segment display Reg SCLK // clock used inside the always block which is equated to the SCL at the end. Reg SDI //register used for sending signals to temperature sensor inside the always block since we are using SDA as inout we cannot use it inside the always block. Reg count= 32'h00000000 //counter used for slow clock Where am I going wrong? reg SD_COUNTER = 6'd0 //counter used for the sending all the signals to the temperature sensor All of the led's wind up set to on, and I can't find the problem. ![]() ![]() I have the following code to try and read the ADT7420 on my nexys4DDR FPGA board.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |