my .csv file is like this
Description RD/WR
lfxosc_bp_c_jtag WR
lfxosc_pd_c_jtag WR
lfxosc_i_mult_ctrl_c_jtag[0] WR
lfxosc_i_mult_ctrl_c_jtag[1] WR
lfxosc_i_mult_ctrl_c_jtag[2] WR
lfxosc_r_ref_ctrl_c_jtag[0] WR
lfxosc_r_ref_ctrl_c_jtag[1] WR
lfxosc_r_ref_ctrl_c_jtag[2] WR
rd_rsrv_hfxosc_jtag RD
rd_rsrv_hfxosc_jtag RD
i want to convert this like
wire lfxosc_bp_c_jtag
wire lfxosc_pd_c_jtag
wire lfxosc_i_mult_ctrl_c_jtag[0]
wire lfxosc_i_mult_ctrl_c_jtag[1]
wire lfxosc_i_mult_ctrl_c_jtag[2]
wire lfxosc_r_ref_ctrl_c_jtag[0]
wire lfxosc_r_ref_ctrl_c_jtag[1]
wire lfxosc_r_ref_ctrl_c_jtag[2]
reg _rsrv_hfxosc_jtag
reg rd_rsrv_hfxosc_jtag
RD/WR column should come first and the string should change like if it is RD it should be reg.
if it is WR it should be wire.
please do the needful.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.