Altera_Forum
Honored Contributor
18 years agoMux - Verilog code question
Hello everyone.
Mux verilog code below. They do the same, but option 2 got huge delays and cannot meet timing. Conclusion: they have different fitter results but I thought they are the same?? or am I wrong?? I'm using quartus II 7.2, device cyclone II. 1.) always @(*) begin case (TxWrnum) 4'h0 : TXD_rdaddress <= TXD_rdaddressV[00*6+5:00*6+0]; 4'h1 : TXD_rdaddress <= TXD_rdaddressV[01*6+5:01*6+0]; ........... 4'hE : TXD_rdaddress <= TXD_rdaddressV[14*6+5:14*6+0]; 4'hF : TXD_rdaddress <= TXD_rdaddressV[15*6+5:15*6+0]; default : TXD_rdaddress <= 16'h00; endcase end 2.) assign TXD_rdaddress = TXD_rdaddressV[(TxWrnum*6)+:6]; thanks