Jun 27, 2008 #1 W wls Member level 4 Joined Jul 26, 2001 Messages 75 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,286 Location Singapore Activity points 856 analog multiplexer in veriloga Hello . Can anayone share/ how to program a 8-to-1 analog multiplexer in verilog-a ? Thx .
analog multiplexer in veriloga Hello . Can anayone share/ how to program a 8-to-1 analog multiplexer in verilog-a ? Thx .
Jun 27, 2008 #2 K kennyg Member level 2 Joined Jan 10, 2005 Messages 47 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 354 veriloga model for mux module mux8to1(in0,in1,in7,out,select) input in0,in1,in7,select; output out; electrical in0,in1,in7,select; real outVal; analog begin case (select) 0utVal=V(in0); 1utVal=V(in1); 7utVal=V(in7); defaultutVal=0; endcase V(out)<+outVal; end endmodule Added after 1 minutes: I don't test this code,please try and give me some feedback advice.
veriloga model for mux module mux8to1(in0,in1,in7,out,select) input in0,in1,in7,select; output out; electrical in0,in1,in7,select; real outVal; analog begin case (select) 0utVal=V(in0); 1utVal=V(in1); 7utVal=V(in7); defaultutVal=0; endcase V(out)<+outVal; end endmodule Added after 1 minutes: I don't test this code,please try and give me some feedback advice.