Base Converter
Invalid decimal character
Invalid binary character (Use 0 or 1)
Invalid octal character (Use 0-7)
Invalid hex character (Use 0-9, A-F)
In the real word, there might be many scenario that we need to detect rising edge or falling edge of the signal. If rising/falling edge happens on particular signal, then design can perform certain task. This rising or falling edge can be detected using following code. This code is done in Verilog language. In given below example code, clock clk, input signal sig_a, output rising edge signal ris_a and falling edge signal fal_a are defined. Both ris_a and fal_a are high for one clock cycle when circuit detects rising or falling edge on the sig_a respectively.
Flip-Flop
|
Latch
|
Flip-Flop is Edge sensitive device.
|
Latch is Level sensitive device.
|
In Flip-Flop, output will change on rising or
falling edge of clock signal.
|
In Latch, if Enable/Clock signal is high then
output will change accordingly input.
|
So, we can say that Flip-Flop is a Synchronous version of Latch.
|
So, we can say that Latch is Asynchronous device.
|
Flip-Flop based design creates less timing
problems.
|
Latch based design creates more timing problems.
|
In design Flip-Flop takes more area compared to
Latch.
|
In design Latch takes less area compared to
Flip-Flop.
|
In design Flip-Flop consumes more power compare
to Latch.
|
In design Latch consumes less power compare to Flip-Flop.
|