[ibis-macro] Re: XML format sample

  • From: "Mike LaBonte (milabont)" <milabont@xxxxxxxxx>
  • To: <arpad.muranyi@xxxxxxxxx>, <ibis-macro@xxxxxxxxxxxxx>
  • Date: Mon, 3 Oct 2005 14:00:26 -0400

Arpad,

I sort of got it working. IE will not open it as xml unless the
extension is .xml. Then another problem is that the first 3 lines of the
file have to be uncommented. Actually 2 lines if you take out the DTD
declaration.

Mike

-----Original Message-----
From: ibis-macro-bounce@xxxxxxxxxxxxx
[mailto:ibis-macro-bounce@xxxxxxxxxxxxx] On Behalf Of Muranyi, Arpad
Sent: Monday, October 03, 2005 11:27 AM
To: ibis-macro@xxxxxxxxxxxxx
Subject: [ibis-macro] Re: XML format sample

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
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ibismacro SYSTEM "ibismacro.dtd">
<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><![CDATA[
*/
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>

Other related posts: