The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 12:49pm
Pages: 1
Send Topic Print
for checking I/O behavior (Read 1655 times)
sand_dolphin2
Community Member
***
Offline



Posts: 40
Japan
for checking I/O behavior
Oct 4th, 2010, 6:41pm
 

Now , DUT has I/O (bi-directional) port w/t pull up or pull down resister.

So, i wana check this function of this I/O.

plz refer to my appended file to show testbench.
-JTAG task(verilog-D)
-LevelShifter( up to I/O voltage )
-DUT

for checking behavior of these I/O , at first i make module on VAMS.

//------------------------------------------
module LS_ams( Ain , A5vout );

input  Ain;
output A5vout;

electrical Ain,A5vout;

real temp;

analog begin
@(cross(V(Ain)-0.7,0));
  if(V(Ain)>0.1) temp = 1;
  else temp=0;

V(A5vout) <+ 5*transition(temp,0,1n,1n);

end

endmodule
//------------------------------------------


about this, so many questions i have...
at first, i want 2 know 2 question as first step.

1) Hiz case
How does connect function works  when JTAG task(verilog-D) drive  Hiz?
Does connect function which tool insert automatically translate Hiz directly ?

now it seems so( trans Hiz ) on my simulation results.
my understanding is correct?

2)  output impedance
how should i care for output impedance of this vams module.

now it seems so low impedance on my simulation.
cos, i can't fond pull up function of I/O.



plz let me know...


Cry
Back to top
« Last Edit: Oct 04th, 2010, 7:59pm by sand_dolphin2 »  

WS000001.JPG
View Profile   IP Logged
sand_dolphin2
Community Member
***
Offline



Posts: 40
Japan
Re: for checking I/O behavior
Reply #1 - Oct 7th, 2010, 1:13am
 
Now,

just i use Cadence's connect module.

like as
//---------------------------------

always @(Din)
begin
  case(Din)
    1'b0:  begin  Vstate=0; Rout=200;    end
    1'b1:  begin  Vstate=5; Rout=200;    end
    1'bz:  begin  Rout=10M;  end
//     default:  begin Vstate=vx; Rout=rx;  end
  endcase
end

analog begin
 rout = transition(Rout,0,1n,1n,);     // rout shifts linearly also;
 I(Avout) <+ (V(Avout)-transition(Vstate,0,1n,1n,))/rout;
end

//---------------------------------


it works well for translate Logic Hiz state to Analog solver.


thx all.

Wink
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.