So I'm trying to design Seven Segment Decoder. When Button is pressed at 110, then the LED Display should display 1 digit hex number: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. But, when Button is pressed at 101, then the LED Display should display 1 digit decimal number: 0,1,2,3,4,5,6,7,8,9.
This is my Warnings:
A Digital Decoder IC, is a device which converts one digital format into another and one of the most commonly used devices for doing this is called the Binary Coded Decimal (BCD) to 7-Segment Display Decoder. 7-segment LED (Light Emitting Diode) or LCD (Liquid Crystal Display) type displays, provide a very convenient way of displaying.
This is my code using Xilinx design tools:
1 Answer
In order to remove those warnings you must set a value for out
in every possible in
and button
.otherwise you will get a latch.
In your code you do not cover all posibilities for button
input - you only cover 110 and 101.
An easy way to cover all posibilities in your code may be:
... // your module definition as is
// Low active signal should activate the LEDs
... // your case statement as is
... // your case statement as is
This way, when button is different then 110 or 101, it will show blank.