does the following two codes in VHDL mean same. What is difference in implementaion

Status
Not open for further replies.

FixitFast

Junior Member level 2
Joined
Feb 6, 2013
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,462
Hello every one.

The two codes are below


Code:
if(valid_shift_HIGH = '1') then
if(buff_2Sn_empty = '0' and buff_2Sn_1_empty = '0') then
 rden_buff2 <= '1'; 
 else						
 rden_buff2 <= '0';	
 end if;
 else
  rden_buff2 <= '0';
  end if;

the other is

Code:
rden_buff2 <= valid_shift_HIGH and (not buff_2Sn_empty and not buff_2Sn_1_empty);


I suppose the final implementaion + logical operation for both should be exactly same ?

Any idea?
 

hi

well the logical operation for both would be same. However implementation at hardware level will be slightly different, but it does not matter much (in my opinion) since at the end of the day the results are what you want
 

Why not compile them both and see the differences for yourself in the RTL and implementation diagrams?
 

Why not compile them both and see the differences for yourself in the RTL and implementation diagrams?
Good suggestion. Nevertheless can it be derived from language specification that both hardware implementations are exactly identical.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…