CDL Modules
|
Files | |
file | apb_target_gpio.cdl |
Simple GPIO target for an APB bus. | |
module apb_master_mux::apb_master_mux | ( | clock | clk, |
input bit | reset_n, | ||
input t_apb_request | apb_request_0, | ||
output t_apb_response | apb_response_0, | ||
input t_apb_request | apb_request_1, | ||
output t_apb_response | apb_response_1, | ||
output t_apb_request | apb_request, | ||
input t_apb_response | apb_response | ||
) |
APB multiplexer - or rather, arbiter and multiplexer
The module takes two APB requests in, and provides a single APB request out.
An APB request from each master is registered, and APB transactions are performed using simple round-robin arbitration.
[in] | clk | System clock |
[in] | reset_n | Active low reset |
[in] | apb_request_0 | APB request to master 0 |
[out] | apb_response_0 | APB response to master 0 |
[in] | apb_request_1 | APB request to master 1 |
[out] | apb_response_1 | APB response to master 1 |
[out] | apb_request | APB request to targets |
[in] | apb_response | APB response from targets |