verilog-a model of 8-to-1 analog mux needed

Status
Not open for further replies.

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 .
 

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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…