Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: Ideal differential mixer model in rflib

$
0
0
I found following code is available in sematicscholar , not sure if this can help. module mixerverilog (RFINP, RFINM, LOINP, LOINM, MIXOUTP, MIXOUTM); output MIXOUTP, MIXOUTM; input RFINP, RFINM, LOINP, LOINM; electrical RFINP, RFINM, LOINP, LOINM, MIXOUTP, MIXOUTM; parameter real gain=2.0/`M_PI; real gm, kf, argl, arg2; real vod, af, ef, uCox, w, vth; analog begin w = 80; vth = 0.56; kf = 1.0e-22*5.8e-9/(w*1.0e-12*3.9*8.85e-12) ; // kf = kf'/(WLCox) af = 1.0; ef = 1.0; vod = 0.04; uCox = 108e-6; argl = 3.3e-20; // arg2 = 4kT*gamma gm = 1.12e-3; V(MIXOUTP) <+ gain*V(RFINP,RFINM)*V(LOINP, LOINM) ; I(MIXOUTP,MIXOUTM) <+ 1.0e-6*uCox*w*(V(RFINP,RFINM)-vth) *(V(RFINP,RFINM)-vth)/(1+V(RFINP,RFINM)-vth); I(MIXOUTP,MIXOUTM) <+ gm*vod/2; I(MIXOUTP,MIXOUTM) <+ flicker_noise(kf* pow(abs(I(MIXOUTP,MIXOUTM)),af),ef); I(MIXOUTP,MIXOUTM) <+ flicker_noise(argl*gm* pow(abs(I(MIXOUTP,MIXOUTM)),0.0),0.0); end endmodule

Viewing all articles
Browse latest Browse all 33813

Trending Articles