Hi
plz help me how can i write
verilog-HDL an up/down BCD counter
i make 4 function for up
and 4 for down
but how can i write them in verilog-HDL
can i use assign in if statement ??
if(up==1)
{
assign f1= xxxxx;
assign f2= xxxxx;
assign f3= xxxxx;
assign f4;= xxxxx;
}
if(down==1)
assign g1= xxxxx;
assign g2= xxxxx;
assign g3= xxxxx;
assign g4;= xxxxx;
}
plz see attachments
i want to write Verilog-HDL for this diagram
:-( :-(
Thanks ....
plz help me how can i write
verilog-HDL an up/down BCD counter
i make 4 function for up
and 4 for down
but how can i write them in verilog-HDL
can i use assign in if statement ??
if(up==1)
{
assign f1= xxxxx;
assign f2= xxxxx;
assign f3= xxxxx;
assign f4;= xxxxx;
}
if(down==1)
assign g1= xxxxx;
assign g2= xxxxx;
assign g3= xxxxx;
assign g4;= xxxxx;
}
plz see attachments
i want to write Verilog-HDL for this diagram
:-( :-(
Thanks ....