mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2025-08-23 16:53:05 +00:00
Update examples with changes from ae83dceb
This commit is contained in:
99
examples/aliases/log
Normal file
99
examples/aliases/log
Normal file
@@ -0,0 +1,99 @@
|
||||
verilator -cc -sv srdl2sv_out/aliases.sv srdl2sv_out/srdl2sv_amba3ahblite.sv srdl2sv_out/srdl2sv_widget_if.sv
|
||||
%Error: srdl2sv_out/aliases.sv:103:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f1_ext_w_ack'
|
||||
103 | input example_rf__ext_main_reg__f1_ext_w_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:98:25: ... Location of original declaration
|
||||
98 | input example_rf__ext_main_reg__f1_ext_w_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:104:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f1_ext_w_err'
|
||||
104 | input example_rf__ext_main_reg__f1_ext_w_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:97:25: ... Location of original declaration
|
||||
97 | input example_rf__ext_main_reg__f1_ext_w_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:109:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f1_ext_r_ack'
|
||||
109 | input example_rf__ext_main_reg__f1_ext_r_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:94:25: ... Location of original declaration
|
||||
94 | input example_rf__ext_main_reg__f1_ext_r_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:110:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f1_ext_r_err'
|
||||
110 | input example_rf__ext_main_reg__f1_ext_r_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:93:25: ... Location of original declaration
|
||||
93 | input example_rf__ext_main_reg__f1_ext_r_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:118:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f2_ext_w_ack'
|
||||
118 | input example_rf__ext_main_reg__f2_ext_w_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:100:25: ... Location of original declaration
|
||||
100 | input example_rf__ext_main_reg__f2_ext_w_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:119:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f2_ext_w_err'
|
||||
119 | input example_rf__ext_main_reg__f2_ext_w_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:99:25: ... Location of original declaration
|
||||
99 | input example_rf__ext_main_reg__f2_ext_w_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:124:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f2_ext_r_ack'
|
||||
124 | input example_rf__ext_main_reg__f2_ext_r_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:96:25: ... Location of original declaration
|
||||
96 | input example_rf__ext_main_reg__f2_ext_r_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:125:25: Duplicate declaration of signal: 'example_rf__ext_main_reg__f2_ext_r_err'
|
||||
125 | input example_rf__ext_main_reg__f2_ext_r_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:95:25: ... Location of original declaration
|
||||
95 | input example_rf__ext_main_reg__f2_ext_r_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:103:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f1_ext_w_ack'
|
||||
103 | input example_rf__ext_main_reg__f1_ext_w_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:98:25: ... Location of original declaration
|
||||
98 | input example_rf__ext_main_reg__f1_ext_w_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:104:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f1_ext_w_err'
|
||||
104 | input example_rf__ext_main_reg__f1_ext_w_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:97:25: ... Location of original declaration
|
||||
97 | input example_rf__ext_main_reg__f1_ext_w_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:109:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f1_ext_r_ack'
|
||||
109 | input example_rf__ext_main_reg__f1_ext_r_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:94:25: ... Location of original declaration
|
||||
94 | input example_rf__ext_main_reg__f1_ext_r_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:110:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f1_ext_r_err'
|
||||
110 | input example_rf__ext_main_reg__f1_ext_r_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:93:25: ... Location of original declaration
|
||||
93 | input example_rf__ext_main_reg__f1_ext_r_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:118:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f2_ext_w_ack'
|
||||
118 | input example_rf__ext_main_reg__f2_ext_w_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:100:25: ... Location of original declaration
|
||||
100 | input example_rf__ext_main_reg__f2_ext_w_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:119:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f2_ext_w_err'
|
||||
119 | input example_rf__ext_main_reg__f2_ext_w_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:99:25: ... Location of original declaration
|
||||
99 | input example_rf__ext_main_reg__f2_ext_w_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:124:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f2_ext_r_ack'
|
||||
124 | input example_rf__ext_main_reg__f2_ext_r_ack [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:96:25: ... Location of original declaration
|
||||
96 | input example_rf__ext_main_reg__f2_ext_r_ack[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: srdl2sv_out/aliases.sv:125:25: Duplicate declaration of port: 'example_rf__ext_main_reg__f2_ext_r_err'
|
||||
125 | input example_rf__ext_main_reg__f2_ext_r_err [4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
srdl2sv_out/aliases.sv:95:25: ... Location of original declaration
|
||||
95 | input example_rf__ext_main_reg__f2_ext_r_err[4],
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
%Error: Exiting due to 16 error(s)
|
||||
make: *** [Makefile:8: verilog_compile] Error 1
|
@@ -20,7 +20,7 @@
|
||||
*
|
||||
* Generation information:
|
||||
* - User: : dpotter
|
||||
* - Time : November 07 2021 11:34:07
|
||||
* - Time : November 26 2021 16:31:40
|
||||
* - Path : /home/dpotter/srdl2sv/examples/aliases
|
||||
* - RDL file : ['aliases.rdl']
|
||||
* - Hostname : ArchXPS
|
||||
@@ -70,61 +70,68 @@
|
||||
module aliases
|
||||
|
||||
(
|
||||
// Resets
|
||||
// Reset signals declared for registers
|
||||
|
||||
|
||||
// Inputs
|
||||
input clk ,
|
||||
input HRESETn ,
|
||||
input [31:0] HADDR ,
|
||||
input HWRITE ,
|
||||
input [2:0] HSIZE ,
|
||||
input [3:0] HPROT ,
|
||||
input [1:0] HTRANS ,
|
||||
input [32-1:0] HWDATA ,
|
||||
input HSEL ,
|
||||
input example_rf__ext_main_reg__f1_ext_r_err [4],
|
||||
input example_rf__ext_main_reg__f1_ext_r_ack [4],
|
||||
input example_rf__ext_main_reg__f2_ext_r_err [4],
|
||||
input example_rf__ext_main_reg__f2_ext_r_ack [4],
|
||||
input example_rf__ext_main_reg__f1_ext_w_err [4],
|
||||
input example_rf__ext_main_reg__f1_ext_w_ack [4],
|
||||
input example_rf__ext_main_reg__f2_ext_w_err [4],
|
||||
input example_rf__ext_main_reg__f2_ext_w_ack [4],
|
||||
input [15:0] example_rf__ext_main_reg__f1_ext_r_data[4],
|
||||
input [15:0] example_rf__ext_main_reg__f2_ext_r_data[4],
|
||||
input [0:0] event1__some_event_in ,
|
||||
input four_field_reg__f1_hw_wr ,
|
||||
input [7:0] four_field_reg__f1_in ,
|
||||
input four_field_reg__f2_hw_wr ,
|
||||
input [7:0] four_field_reg__f2_in ,
|
||||
input four_field_reg__f3_hw_wr ,
|
||||
input [7:0] four_field_reg__f3_in ,
|
||||
input four_field_reg__f4_hw_wr ,
|
||||
input [7:0] four_field_reg__f4_in ,
|
||||
// Ports for 'General Clock'
|
||||
input clk,
|
||||
|
||||
// Outputs
|
||||
output HREADYOUT ,
|
||||
output HRESP ,
|
||||
output [32-1:0] HRDATA ,
|
||||
output example_rf__ext_main_reg__f1_ext_w_req [4],
|
||||
output [15:0] example_rf__ext_main_reg__f1_ext_w_data [4],
|
||||
output [15:0] example_rf__ext_main_reg__f1_ext_w_mask [4],
|
||||
output example_rf__ext_main_reg__f1_ext_r_req [4],
|
||||
output example_rf__ext_alias_reg__field_1_ext_w_req[4],
|
||||
// Ports for 'AHB Protocol'
|
||||
input HRESETn ,
|
||||
input [31:0] HADDR ,
|
||||
input HWRITE ,
|
||||
input [2:0] HSIZE ,
|
||||
input [3:0] HPROT ,
|
||||
input [1:0] HTRANS ,
|
||||
input [32-1:0] HWDATA ,
|
||||
input HSEL ,
|
||||
output HREADYOUT,
|
||||
output HRESP ,
|
||||
output [32-1:0] HRDATA ,
|
||||
|
||||
// Ports for 'example_rf__ext_main_reg'
|
||||
input example_rf__ext_main_reg__f1_ext_r_err [4],
|
||||
input example_rf__ext_main_reg__f1_ext_r_ack [4],
|
||||
input example_rf__ext_main_reg__f2_ext_r_err [4],
|
||||
input example_rf__ext_main_reg__f2_ext_r_ack [4],
|
||||
input example_rf__ext_main_reg__f1_ext_w_err [4],
|
||||
input example_rf__ext_main_reg__f1_ext_w_ack [4],
|
||||
input example_rf__ext_main_reg__f2_ext_w_err [4],
|
||||
input example_rf__ext_main_reg__f2_ext_w_ack [4],
|
||||
output example_rf__ext_main_reg__f1_ext_w_req [4],
|
||||
output [15:0] example_rf__ext_main_reg__f1_ext_w_data [4],
|
||||
output [15:0] example_rf__ext_main_reg__f1_ext_w_mask [4],
|
||||
input [15:0] example_rf__ext_main_reg__f1_ext_r_data [4],
|
||||
output example_rf__ext_main_reg__f1_ext_r_req [4],
|
||||
output example_rf__ext_alias_reg__field_1_ext_w_req [4],
|
||||
output [15:0] example_rf__ext_alias_reg__field_1_ext_w_data[4],
|
||||
output [15:0] example_rf__ext_alias_reg__field_1_ext_w_mask[4],
|
||||
output example_rf__ext_alias_reg__field_1_ext_r_req[4],
|
||||
output example_rf__ext_main_reg__f2_ext_w_req [4],
|
||||
output [15:0] example_rf__ext_main_reg__f2_ext_w_data [4],
|
||||
output [15:0] example_rf__ext_main_reg__f2_ext_w_mask [4],
|
||||
output example_rf__ext_main_reg__f2_ext_r_req [4],
|
||||
output event1_intr ,
|
||||
output [7:0] four_field_reg__f1_r ,
|
||||
output [7:0] four_field_reg__f2_r ,
|
||||
output [7:0] four_field_reg__f3_r ,
|
||||
output reg four_field_reg__f3_swmod ,
|
||||
output [7:0] four_field_reg__f4_r
|
||||
output example_rf__ext_alias_reg__field_1_ext_r_req [4],
|
||||
output example_rf__ext_main_reg__f2_ext_w_req [4],
|
||||
output [15:0] example_rf__ext_main_reg__f2_ext_w_data [4],
|
||||
output [15:0] example_rf__ext_main_reg__f2_ext_w_mask [4],
|
||||
input [15:0] example_rf__ext_main_reg__f2_ext_r_data [4],
|
||||
output example_rf__ext_main_reg__f2_ext_r_req [4],
|
||||
|
||||
// Ports for 'event1'
|
||||
output event1_intr ,
|
||||
input [0:0] event1__some_event_in,
|
||||
|
||||
// Ports for 'four_field_reg'
|
||||
input four_field_reg__f1_hw_wr,
|
||||
input [7:0] four_field_reg__f1_in ,
|
||||
output [7:0] four_field_reg__f1_r ,
|
||||
input four_field_reg__f2_hw_wr,
|
||||
input [7:0] four_field_reg__f2_in ,
|
||||
output [7:0] four_field_reg__f2_r ,
|
||||
input four_field_reg__f3_hw_wr,
|
||||
input [7:0] four_field_reg__f3_in ,
|
||||
output [7:0] four_field_reg__f3_r ,
|
||||
output reg four_field_reg__f3_swmod,
|
||||
input four_field_reg__f4_hw_wr,
|
||||
input [7:0] four_field_reg__f4_in ,
|
||||
output [7:0] four_field_reg__f4_r
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user