[ibis-macro] Re: XML format sample

  • From: "Muranyi, Arpad" <arpad.muranyi@xxxxxxxxx>
  • To: <ibis-macro@xxxxxxxxxxxxx>
  • Date: Mon, 3 Oct 2005 08:26:57 -0700

Mike,

Sorry for such a novice question, but how do I get
this sample displayed in a browser?  I tried by
saving off the sample with an htm file extension 
and I also removed the stuff outside the section:

/*====================================================================
<module>
  <mname>IBIS_R</mname>
  <mdesc>
    A simple resistor. The resistor value is calculated:
      R = Rval * Scale
  </mdesc>
  <mterm>
    <tname>p</tname>
    <tdesc>Positive resistor terminal</tdesc>
  </mterm>
  <mterm>
    <tname>n</tname>
    <tdesc>Negative resistor terminal</tdesc>
  </mterm>
  <mparam>
    <pname>Rval</pname>
    <pdesc>Resistance value</pdesc>
  </mparam>
  <mparam>
    <pname>Scale</pname>
    <pdesc>Scaling factor for resistance value</pdesc>
  </mparam>
  <mexample>
    VAMS: IBIS_R #(.Rval(100)) R1 (clk_n, clk_p);
  </mexample>
  <mexample>
    SPICE: R1 clk_n clkp IBIS_R Rval=100
  </mexample>
*/
//<msource>
module IBIS_R (p, n);
  electrical p, n;
  branch    (p, n) Out;
  parameter real Rval  = 1.0;
  parameter real Scale = 1.0;

  analog begin
    V(Out) <+ Scale * Rval * I(Out);
  end
endmodule
//</msource>
/*
</module>
*/ 



but I was only getting errors.  Could you explain please
how it would show up in a browser?

Thanks,

Arpad
========================================================

-----Original Message-----
From: ibis-macro-bounce@xxxxxxxxxxxxx [mailto:ibis-macro-bounce@xxxxxxxxxxxxx] 
On Behalf Of Mike LaBonte (milabont)
Sent: Monday, October 03, 2005 7:20 AM
To: ibis-macro@xxxxxxxxxxxxx
Subject: [ibis-macro] XML format sample

Here is one way we might use XML formatting for the documentation of
Verilog-A modules.

Mike

/*====================================================================
<module>
  <mname>IBIS_R</mname>
  <mdesc>
    A simple resistor. The resistor value is calculated:
      R = Rval * Scale
  </mdesc>
  <mterm>
    <tname>p</tname>
    <tdesc>Positive resistor terminal</tdesc>
  </mterm>
  <mterm>
    <tname>n</tname>
    <tdesc>Negative resistor terminal</tdesc>
  </mterm>
  <mparam>
    <pname>Rval</pname>
    <pdesc>Resistance value</pdesc>
  </mparam>
  <mparam>
    <pname>Scale</pname>
    <pdesc>Scaling factor for resistance value</pdesc>
  </mparam>
  <mexample>
    VAMS: IBIS_R #(.Rval(100)) R1 (clk_n, clk_p);
  </mexample>
  <mexample>
    SPICE: R1 clk_n clkp IBIS_R Rval=100
  </mexample>
*/
//<msource>
module IBIS_R (p, n);
  electrical p, n;
  branch    (p, n) Out;
  parameter real Rval  = 1.0;
  parameter real Scale = 1.0;

  analog begin
    V(Out) <+ Scale * Rval * I(Out);
  end
endmodule
//</msource>
/*
</module>
*/
---------------------------------------------------------------------
IBIS Macro website:  http://www.sisoft.com/ibis-macro
IBIS Macro archives: //www.freelists.org/archives/ibis-macro
To unsubscribe send an email:
  To: ibis-macro-request@xxxxxxxxxxxxx
  Subject: unsubscribe

---------------------------------------------------------------------
IBIS Macro website:  http://www.sisoft.com/ibis-macro
IBIS Macro archives: //www.freelists.org/archives/ibis-macro
To unsubscribe send an email:
  To: ibis-macro-request@xxxxxxxxxxxxx
  Subject: unsubscribe

Other related posts: