srdl2sv/srdl2sv/components/widgets/srdl2sv_amba3ahblite.yaml

78 lines
2.4 KiB
YAML

# This file only contains the instantiation of the module
module_instantiation:
rtl: |-
/*******************************************************************
* AMBA 3 AHB Lite Widget
* ======================
* Naming conventions
* - widget_if -> SystemVerilog interface to between widgets
* and the internal srdl2sv registers.
* - H* -> Signals as defined in AMBA3 AHB Lite
* specification
* - clk -> Clock that drives registers and the bus
*******************************************************************/
srdl2sv_amba3ahblite
#(.FLOP_REGISTER_IF (0),
.BUS_BITS ({bus_width}),
.NO_BYTE_ENABLE ({no_byte_enable}))
srdl2sv_amba3ahblite_inst
(// Bus protocol
.HRESETn,
.HCLK (clk),
.HADDR,
.HWRITE,
.HSIZE,
.HPROT,
.HTRANS,
.HWDATA,
.HSEL,
.HREADYOUT,
.HRESP,
.HRDATA,
// Interface to internal logic
.widget_if);
signals:
signals:
- name: 'widget_if'
signal_type: 'srdl2sv_widget_if #(.ADDR_W ({addr_width}), .DATA_W({bus_width}))'
input_ports:
- name: 'clk'
signal_type: ''
group: 'General Clock'
- name: 'HRESETn'
signal_type: ''
group: 'AHB Protocol'
- name: 'HADDR'
signal_type: '[31:0]'
group: 'AHB Protocol'
- name: 'HWRITE'
signal_type: ''
group: 'AHB Protocol'
- name: 'HSIZE'
signal_type: '[2:0]'
group: 'AHB Protocol'
- name: 'HPROT'
signal_type: '[3:0]'
group: 'AHB Protocol'
- name: 'HTRANS'
signal_type: '[1:0]'
group: 'AHB Protocol'
- name: 'HWDATA'
signal_type: '[{bus_width}-1:0]'
group: 'AHB Protocol'
- name: 'HSEL'
signal_type: ''
group: 'AHB Protocol'
output_ports:
- name: 'HREADYOUT'
signal_type: ''
group: 'AHB Protocol'
- name: 'HRESP'
signal_type: ''
group: 'AHB Protocol'
- name: 'HRDATA'
signal_type: '[{bus_width}-1:0]'
group: 'AHB Protocol'