Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to Remove latch

Status
Not open for further replies.

chyavanphadke

Newbie
Newbie level 3
Joined
Oct 17, 2020
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
30
On synthesizing this code using the script, the terminal report will show a latch. What changes I have to do in code so as to remove the latch

module dff(
input clk,reset,d,
output reg q);

always @ (clk or reset) begin
if (reset) begin
q<=0;
end
else begin
if (clk)
q<=d;
end
end
endmodule
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top