OpenCores
URL https://opencores.org/ocsvn/wdsp/wdsp/trunk

Subversion Repositories wdsp

[/] [wdsp/] [trunk/] [rtl/] [verilog/] [minsoc/] [wb_conmax/] [tags/] [start/] [mast1.pl] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 parrado
#!/bin/perl
2
 
3
 
4
for($n=16;$n<16;$n++) {
5
 
6
printf("        // Slave %0d Interface\n", $n );
7
printf("        s%0d_data_i, s%0d_data_o, s%0d_addr_o, s%0d_sel_o, s%0d_we_o, s%0d_cyc_o,\n", $n, $n, $n, $n, $n, $n );
8
printf("        s%0d_stb_o, s%0d_ack_i, s%0d_err_i, s%0d_rty_i,\n\n", $n, $n, $n, $n );
9
 
10
   }
11
 
12
for($n=0;$n<8;$n++) {
13
 
14
printf("// Master %0d Interface\n", $n);
15
printf("input   [dw-1:0]        m%0d_data_i;\n", $n);
16
printf("output  [dw-1:0]        m%0d_data_o;\n", $n);
17
printf("input   [aw-1:0]        m%0d_addr_i;\n", $n);
18
printf("input   [sw-1:0]        m%0d_sel_i;\n", $n);
19
printf("input                   m%0d_we_i;\n", $n);
20
printf("input                   m%0d_cyc_i;\n", $n);
21
printf("input                   m%0d_stb_i;\n", $n);
22
printf("output                  m%0d_ack_o;\n", $n);
23
printf("output                  m%0d_err_o;\n", $n);
24
printf("output                  m%0d_rty_o;\n\n", $n);
25
 
26
   }
27
 
28
for($n=0;$n<16;$n++) {
29
 
30
printf("// Slave %0d Interface\n", $n);
31
printf("input   [dw-1:0]        s%0d_data_i;\n", $n);
32
printf("output  [dw-1:0]        s%0d_data_o;\n", $n);
33
printf("output  [aw-1:0]        s%0d_addr_o;\n", $n);
34
printf("output  [sw-1:0]        s%0d_sel_o;\n", $n);
35
printf("output                  s%0d_we_o;\n", $n);
36
printf("output                  s%0d_cyc_o;\n", $n);
37
printf("output                  s%0d_stb_o;\n", $n);
38
printf("input                   s%0d_ack_i;\n", $n);
39
printf("input                   s%0d_err_i;\n", $n);
40
printf("input                   s%0d_rty_i;\n\n", $n);
41
 
42
 
43
   }
44
 
45
 
46
for($n=8;$n<8;$n++) {
47
 
48
printf("        // Master %0d Interface\n", $n );
49
printf("        m%0d_data_i, m%0d_data_o, m%0d_addr_i, m%0d_sel_i, m%0d_we_i, m%0d_cyc_i,\n", $n, $n, $n, $n, $n, $n );
50
printf("        m%0d_stb_i, m%0d_ack_o, m%0d_err_o, m%0d_rty_o,\n\n", $n, $n, $n, $n );
51
 
52
   }
53
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.