FPGARelated.com
Forums

How to insert tab in Write() function in VHDL

Started by Weng Tianxiang May 18, 2007
Hi,
I want to insert tab in write() function in VHDL.

Here is a write() function definition:
    procedure WRITE(L : inout LINE; VALUE : in character;
	      JUSTIFIED: in SIDE := right;
	      FIELD: in WIDTH := 0);

Here is character definition:
package standard is
	type character is (
		nul, soh, stx, etx, eot, enq, ack, bel,
		bs,  ht,  lf,  vt,  ff,  cr,  so,  si,
		dle, dc1, dc2, dc3, dc4, nak, syn, etb,
		can, em,  sub, esc, fsp, gsp, rsp, usp,

		' ', '!', '"', '#', '$', '%', '&', ''',
		'(', ')', '*', '+', ',', '-', '.', '/',
		'0', '1', '2', '3', '4', '5', '6', '7',
		'8', '9', ':', ';', '<', '=', '>', '?',

I want to know which one is tabulator (tab).

Thank you.

Weng

Weng Tianxiang wrote:
> Hi, > I want to insert tab in write() function in VHDL. > > Here is a write() function definition: > procedure WRITE(L : inout LINE; VALUE : in character; > JUSTIFIED: in SIDE := right; > FIELD: in WIDTH := 0); > > Here is character definition: > package standard is > type character is ( > nul, soh, stx, etx, eot, enq, ack, bel, > bs, ht, lf, vt, ff, cr, so, si, > dle, dc1, dc2, dc3, dc4, nak, syn, etb, > can, em, sub, esc, fsp, gsp, rsp, usp, > > ' ', '!', '"', '#', '$', '%', '&', ''', > '(', ')', '*', '+', ',', '-', '.', '/', > '0', '1', '2', '3', '4', '5', '6', '7', > '8', '9', ':', ';', '<', '=', '>', '?', > > I want to know which one is tabulator (tab).
ht
"Sylvain Munaut" <tnt-at-246tNt-dot-com@youknowwhattodo.com> wrote in 
message news:464E266F.2070308@youknowwhattodo.com...
> Weng Tianxiang wrote: >> >> I want to know which one is tabulator (tab). > > ht
or vt
On Sat, 19 May 2007 12:06:25 +0100, 
<symon_brewer@hotmail.com> wrote:

>>> I want to know which one is tabulator (tab). >> >> ht
>or vt
I know what VT did on an ASR33 Teletype, but I'm not at all sure what it's supposed to do these days ... Tabs of any kind are extremely bad news anyway, because their appearance is so strongly dependent on the editor or viewer that you use to do the rendering. I hate 'em. Compute how many spaces you need and insert the spaces explicitly. -- Jonathan Bromley, Consultant DOULOS - Developing Design Know-how VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK jonathan.bromley@MYCOMPANY.com http://www.MYCOMPANY.com The contents of this message may contain personal views which are not the views of Doulos Ltd., unless specifically stated.
On May 19, 7:09 am, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
wrote:
> On Sat, 19 May 2007 12:06:25 +0100, > > <symon_bre...@hotmail.com> wrote: > >>> I want to know which one is tabulator (tab). > > >> ht > >or vt > > I know what VT did on an ASR33 Teletype, but > I'm not at all sure what it's supposed to do > these days ... > > Tabs of any kind are extremely bad news anyway, > because their appearance is so strongly dependent > on the editor or viewer that you use to do the > rendering. I hate 'em. Compute how many spaces > you need and insert the spaces explicitly. > -- > Jonathan Bromley, Consultant > > DOULOS - Developing Design Know-how > VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services > > Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK > jonathan.brom...@MYCOMPANY.comhttp://www.MYCOMPANY.com > > The contents of this message may contain personal views which > are not the views of Doulos Ltd., unless specifically stated.
Hi Jonathan, This time I don't agree with your opinion. What I do is to print out all related waveforms I am interested in and using tab is to make me easier to manually check if the waveforms are right so that a software can be used later to check the waveforms without 1 clock after another to manually check waveforms. 'ht' works for tab in VHDL. Salvain, Thank you. Weng
Weng Tianxiang wrote:
> Hi, > I want to insert tab in write() function in VHDL.
(snip)
> type character is ( > nul, soh, stx, etx, eot, enq, ack, bel, > bs, ht, lf, vt, ff, cr, so, si, > dle, dc1, dc2, dc3, dc4, nak, syn, etb, > can, em, sub, esc, fsp, gsp, rsp, usp, > > ' ', '!', '"', '#', '$', '%', '&', ''', > '(', ')', '*', '+', ',', '-', '.', '/', > '0', '1', '2', '3', '4', '5', '6', '7', > '8', '9', ':', ';', '<', '=', '>', '?',
> I want to know which one is tabulator (tab).
ht is horizontal tab, vt is vertical tab. There are terminals that know what to do with one or both of those. -- glen
On 19 May 2007 18:58:35 -0700, Weng Tianxiang wrote:

>This time I don't agree with your opinion. > >What I do is to print out all related waveforms I am interested in and >using tab is to make me easier to manually check if the waveforms are >right so that a software can be used later to check the waveforms >without 1 clock after another to manually check waveforms.
Ah - you are using tabs to create a tab-separated file for Excel or some similar software? If so, then I'm sorry - yes - that's OK. I still think tabs are a crazy way to create human-readable layouts, because different editors and terminals may handle tabs in different ways. It can get *very* ugly.
> ht works for tab in VHDL.
Indeed. -- Jonathan Bromley, Consultant DOULOS - Developing Design Know-how VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK jonathan.bromley@MYCOMPANY.com http://www.MYCOMPANY.com The contents of this message may contain personal views which are not the views of Doulos Ltd., unless specifically stated.
On May 20, 5:51 pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> Weng Tianxiang wrote: > > Hi, > > I want to insert tab in write() function in VHDL. > > (snip) > > > type character is ( > > nul, soh, stx, etx, eot, enq, ack, bel, > > bs, ht, lf, vt, ff, cr, so, si, > > dle, dc1, dc2, dc3, dc4, nak, syn, etb, > > can, em, sub, esc, fsp, gsp, rsp, usp, > > > ' ', '!', '"', '#', '$', '%', '&', ''', > > '(', ')', '*', '+', ',', '-', '.', '/', > > '0', '1', '2', '3', '4', '5', '6', '7', > > '8', '9', ':', ';', '<', '=', '>', '?', > > I want to know which one is tabulator (tab). > > ht is horizontal tab, vt is vertical tab. There are terminals > that know what to do with one or both of those. > > -- glen
You can see a list of all of these abbreviations at: http://www.asciitable.com/
"Jonathan Bromley" <jonathan.bromley@MYCOMPANY.com> wrote in message 
news:gvu253htpodsk3cs4vj186nqqrimoe9ni7@4ax.com...
> On 19 May 2007 18:58:35 -0700, Weng Tianxiang wrote: > >>What I do is to print out all related waveforms I am interested in and >>using tab is to make me easier to manually check if the waveforms are >>right so that a software can be used later to check the waveforms >>without 1 clock after another to manually check waveforms. > > Ah - you are using tabs to create a tab-separated file for > Excel or some similar software? If so, then I'm sorry - yes - > that's OK. >
...but I'd recommend CSV as a better solution for that application. HTH, Syms.
Symon wrote:
(snip on TAB character)

> ...but I'd recommend CSV as a better solution for that application.
CSV is probably best as long as the fields can't contain a comma. If they do, then some will quote each string, unless the strings can contain quotes. If the do, then... -- glen