splitting the signals

F

faz

Guest
Hai all,

I have one bi-directional signal intp2/inta0/irq .I have splitted as
individual signal with enable signals as follows:



assign inta0_n_en_o = (cas_mode_intp0_o == 1'b1) ? 1'b1 : 1'b0;
assign inta0_n_o = intp2_inta0_irq_o ;
assign intp2_i = (cas_mode_intp0_o ==1'b0) ? intp2 : 1'b0;

assign irq_o =((cas_mode_intp0_o == 1'b1)&&(slave_en_o
== 1'b1))?intp2_inta0_irq_o:1'b0;



Is the above is correct?pls suggest...

regards,
faz
 
You never assign your bi-di signal to a Z state the values on the signal
will be in contention.

Use the following template to setup your bidi;

assign <bidi_signal> = (<output_enable> == 1'b1)? <output_signal>:1'bz;


"faz" <fazulu.vlsi@gmail.com> wrote in message
news:b7a1baf8-6187-4fa6-bae8-431d2e1bc242@s8g2000prg.googlegroups.com...
Hai all,

I have one bi-directional signal intp2/inta0/irq .I have splitted as
individual signal with enable signals as follows:



assign inta0_n_en_o = (cas_mode_intp0_o == 1'b1) ? 1'b1 : 1'b0;
assign inta0_n_o = intp2_inta0_irq_o ;
assign intp2_i = (cas_mode_intp0_o ==1'b0) ? intp2 : 1'b0;

assign irq_o =((cas_mode_intp0_o == 1'b1)&&(slave_en_o
== 1'b1))?intp2_inta0_irq_o:1'b0;



Is the above is correct?pls suggest...

regards,
faz
 

Welcome to EDABoard.com

Sponsor

Back
Top