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.

Need some help solving a register pruning issue

Status
Not open for further replies.

JacquesKleynhans

Member level 2
Member level 2
Joined
Jul 3, 2008
Messages
51
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,630
I have a pruning issue:

if I have the folowing as output

(293) sda_out <= '0' when reset = '1' else sda when rising_edge(sccbclk_inv);

Iget this warning which screws up my program

W CL169 Pruning Register sda_out_cl_2 sccb.vhd (293) sccb_write.srr (23) 14:45:14 Thu Apr 22 compilerReport

Its in inout declared in the top of my code.

If i do it like this it works but then my output is not offsetted by the sccbclk_inv

sda_out <= sda;

Anyone have any clue ??
 

I think you need not worry about this warning.I just googled for pruning registers and I got this link:
**broken link removed**

So the warning you got, may be because the compiler must have noticed that some registers are not actually needed for your logic to work, and it must have optimized the design.

Check your code and see whether these signals - "reset" and "sccbclk_inv" changes.
What I mean is , if reset is always zero in your code, then the compiler will optimize the code into

Code:
if (rising_edge(sccbclk_inv)) then
sda_out <= sda;
end if;


--vipin
http://vhdlguru.blogspot.com/
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top