Automate a csv file

Joined
Jul 6, 2015
Messages
1
Reaction score
0
The csv file looks like as given below.

OUTPUT PATH,a/b/c,,,,
OUTPUT FILENAME,bind_AHB.sv,,,,
PK_BIND_MOD_NME,master,,,,
PK_BIND_MOD_INST,qahb_checker,,,,
PK_INST_NME,AHB_(MASTER/SAVE)_PK_$COUNT,# VERIFY_BLK ==2--> Master| ==1 --> Slave | COUNT==Running count of num of instance,,,
,,,,,
Signal Start,PK_SIG_NME,PK_SIGNALS_WIDTH,DESIGN_SIG_NME(exact string),,
,HRESETn ,1,~dcc_ares,,
,HCLK,1,dcc_clk,,
,HADDR, [31:0],i_dcc_qhs_haddr,,
Param Start,PK_PARAM_NME,PK_DEFAULT_VALUE,PK_NEW_VALUE,,
, AHB_LITE ,0,,,
, VERIFY_BLK ,0,2,,
, CONFIG_SIMULATION,0,,,

I need to automate this in a certain way. It should look for PK_BIND_MOD_NME and PK_INST_NME,AHBand then generate an output file with the name specified in OUTPUT FILENAME ( here its given as bind_AHB.sv) in a certain directory as specified in OUTPUT PATH. The output file should look like
bind master qahb_checker #(.AHB_LITE(0), .VERIFY_BLK(2),.CONFIG_SIMULATION(0)) qahb_checker (.HRESETn(~dcc_ares), .HCLK(dcc_clk), .HADDR(i_dcc_qhs_haddr));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,790
Messages
2,569,637
Members
45,346
Latest member
EstebanCoa

Latest Threads

Top