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.

Regarding a signal being trimmed

Status
Not open for further replies.

akanksha112

Newbie level 1
Joined
Apr 10, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Hi All,



I have an 8 bit local signal which is used for some internal logic. Now the problem I am facing is when I am debugging using chipscope in the netlist signals , the 5th bit of the signal is trimmed and there is no warning or info regarding this.



I am sharing with you the pice of code related to this . I would be grateful if anyone of you could tell me any hint as to why this could happen. Earlier it was not giving any problem. It is a critical signal and I need to probe on it for my design so cant let go off it .



Here is the part of the code , THE SIGNAL IN QUESTION IS O_BYTE

PROCESS(CLOCK,RESET)

BEGIN

IF CLOCK'EVENT AND CLOCK = '1' THEN

IF RESET = '1' THEN

F_E <= '0' AFTER 1 NS;

F_D <= '0' AFTER 1 NS;

ELSIF ((B_SIZE = TRANS_LEN) OR (FLAG_S = '1')) THEN

F_E <= '0' AFTER 1 NS;

ELSIF ((B_SIZE_2 = TRANS_LEN) OR (FLAG_S = '1')) THEN

F_D <= '0' AFTER 1 NS;

ELSIF ((O_BYTE = X"0A") OR (O_BYTE = X"2A"))THEN

F_E <= '1' AFTER 1 NS;

ELSIF ((O_BYTE = X"28") OR (O_BYTE = X"08"))THEN

F_D <= '1' AFTER 1 NS;

END IF;

END IF;

END PROCESS;
 

first of all, you realise that "after" values are ignored for synthesis?

secondly, its been removed because of reduction rules. basically what you are askin is:

if o_byte(5) = '1' or o_byte(5) = '0' then
--do something

this is always true, therefore bit 5 wont be checked, and hence removed,
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top