arradio- add control/status ports

main
Rejeesh Kutty 2017-09-01 14:38:57 -04:00
parent 6ce4494002
commit bb73e7a40f
1 changed files with 11 additions and 3 deletions

View File

@ -132,6 +132,9 @@ module system_top (
// gpio interface // gpio interface
output [ 3:0] gpio_ctl,
input [ 7:0] gpio_status,
input ad9361_clk_out,
output ad9361_resetb, output ad9361_resetb,
output ad9361_en_agc, output ad9361_en_agc,
output ad9361_sync, output ad9361_sync,
@ -173,6 +176,11 @@ module system_top (
assign sys_gpio_bd_i[31:8] = sys_gpio_bd_o[31:8]; assign sys_gpio_bd_i[31:8] = sys_gpio_bd_o[31:8];
assign sys_gpio_bd_i[ 7:0] = gpio_bd_i; assign sys_gpio_bd_i[ 7:0] = gpio_bd_i;
assign sys_gpio_i[31:24] = sys_gpio_o[31:24];
assign sys_gpio_i[23:16] = gpio_status;
assign sys_gpio_i[15: 0] = sys_gpio_o[15:0];
assign gpio_ctl = sys_gpio_o[11:8];
assign ad9361_resetb = sys_gpio_o[4]; assign ad9361_resetb = sys_gpio_o[4];
assign ad9361_en_agc = sys_gpio_o[3]; assign ad9361_en_agc = sys_gpio_o[3];
assign ad9361_sync = sys_gpio_o[2]; assign ad9361_sync = sys_gpio_o[2];