Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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)
0:eek:utVal=V(in0);
1:eek:utVal=V(in1);
7:eek:utVal=V(in7);
default:eek:utVal=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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top