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.

coding ....Design....errors in linting.....!

Status
Not open for further replies.

rakesh_aadhimoolam

Full Member level 4
Joined
Mar 14, 2006
Messages
206
Helped
19
Reputation
38
Reaction score
2
Trophy points
1,298
Activity points
2,751
Linting doubts :

1)what happens if reset is active high as well active low in same module.(reg are dependent on each other)

module lint_test(clock, reset);
input wire clock;
input wire reset;
reg [3:0] a;
reg [3:0] b;
always @(posedge clock or negedge reset)
if (reset)
a = 0;
else
a = a + 1;
always @(posedge clock)
if (!reset)
b = 0;
else
b = a;
endmodule

2)what happens if asynchronous as well synchronous reset are present in same block(reg are dependent on each other)

module lint_test(clock, reset);
input wire clock;
input wire reset;
reg [3:0] a;
reg [3:0] b;
always @(posedge clock or negedge reset)
if (!reset)
a = 0;
else
a = a + 1;
always @(posedge clock)
if (!reset)
b = 0;
else
b = a;
endmodule

3)what happens if a clk generated is from same always block.

module clk_dft(clk, a);
input wire clk;
input wire a;
reg b;
reg c;
always @(posedge clk)
b = clk & 1'b1;
always @(posedge b)
c = ~ a;
endmodule


These are the lint errors i was getting....

what exactly they refer to.....?

The Linting error is severe for above codes but above codes show not even a warning in synthesis.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top