diff --git a/README.md b/README.md index 644d6a6..e6b59bc 100644 --- a/README.md +++ b/README.md @@ -141,11 +141,11 @@ RX_FIFO Level Register ### RX_FIFO_THRESHOLD Register [Offset: 0xfe04, mode: w] RX_FIFO Level Threshold Register - + |bit|field name|width|description| |---|---|---|---| -|0|threshold|1|FIFO level threshold value| +|0|threshold|4|FIFO level threshold value| ### RX_FIFO_FLUSH Register [Offset: 0xfe08, mode: w] @@ -171,11 +171,11 @@ TX_FIFO Level Register ### TX_FIFO_THRESHOLD Register [Offset: 0xfe14, mode: w] TX_FIFO Level Threshold Register - + |bit|field name|width|description| |---|---|---|---| -|0|threshold|1|FIFO level threshold value| +|0|threshold|4|FIFO level threshold value| ### TX_FIFO_FLUSH Register [Offset: 0xfe18, mode: w] diff --git a/hdl/rtl/bus_wrappers/EF_UART_AHBL.pp.v b/hdl/rtl/bus_wrappers/EF_UART_AHBL.pp.v index 97633ff..abb4d90 100644 --- a/hdl/rtl/bus_wrappers/EF_UART_AHBL.pp.v +++ b/hdl/rtl/bus_wrappers/EF_UART_AHBL.pp.v @@ -233,11 +233,11 @@ module EF_UART_AHBL #( wire [FAW-1:0] RX_FIFO_LEVEL_WIRE; assign RX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = rx_level; - reg [0:0] RX_FIFO_THRESHOLD_REG; - assign rxfifotr = RX_FIFO_THRESHOLD_REG[0 : 0]; + reg [FAW-1:0] RX_FIFO_THRESHOLD_REG; + assign rxfifotr = RX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; always @(posedge HCLK or negedge HRESETn) if(~HRESETn) RX_FIFO_THRESHOLD_REG <= 0; else if(ahbl_we & (last_HADDR[16-1:0]==RX_FIFO_THRESHOLD_REG_OFFSET)) - RX_FIFO_THRESHOLD_REG <= HWDATA[1-1:0]; + RX_FIFO_THRESHOLD_REG <= HWDATA[FAW-1:0]; reg [0:0] RX_FIFO_FLUSH_REG; assign rx_fifo_flush = RX_FIFO_FLUSH_REG[0 : 0]; @@ -250,11 +250,11 @@ module EF_UART_AHBL #( wire [FAW-1:0] TX_FIFO_LEVEL_WIRE; assign TX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = tx_level; - reg [0:0] TX_FIFO_THRESHOLD_REG; - assign txfifotr = TX_FIFO_THRESHOLD_REG[0 : 0]; + reg [FAW-1:0] TX_FIFO_THRESHOLD_REG; + assign txfifotr = TX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; always @(posedge HCLK or negedge HRESETn) if(~HRESETn) TX_FIFO_THRESHOLD_REG <= 0; else if(ahbl_we & (last_HADDR[16-1:0]==TX_FIFO_THRESHOLD_REG_OFFSET)) - TX_FIFO_THRESHOLD_REG <= HWDATA[1-1:0]; + TX_FIFO_THRESHOLD_REG <= HWDATA[FAW-1:0]; reg [0:0] TX_FIFO_FLUSH_REG; assign tx_fifo_flush = TX_FIFO_FLUSH_REG[0 : 0]; diff --git a/hdl/rtl/bus_wrappers/EF_UART_AHBL.v b/hdl/rtl/bus_wrappers/EF_UART_AHBL.v index 06c9123..d54cb2e 100644 --- a/hdl/rtl/bus_wrappers/EF_UART_AHBL.v +++ b/hdl/rtl/bus_wrappers/EF_UART_AHBL.v @@ -125,9 +125,9 @@ module EF_UART_AHBL #( wire [FAW-1:0] RX_FIFO_LEVEL_WIRE; assign RX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = rx_level; - reg [0:0] RX_FIFO_THRESHOLD_REG; - assign rxfifotr = RX_FIFO_THRESHOLD_REG[0 : 0]; - `AHBL_REG(RX_FIFO_THRESHOLD_REG, 0, 1) + reg [FAW-1:0] RX_FIFO_THRESHOLD_REG; + assign rxfifotr = RX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + `AHBL_REG(RX_FIFO_THRESHOLD_REG, 0, FAW) reg [0:0] RX_FIFO_FLUSH_REG; assign rx_fifo_flush = RX_FIFO_FLUSH_REG[0 : 0]; @@ -136,9 +136,9 @@ module EF_UART_AHBL #( wire [FAW-1:0] TX_FIFO_LEVEL_WIRE; assign TX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = tx_level; - reg [0:0] TX_FIFO_THRESHOLD_REG; - assign txfifotr = TX_FIFO_THRESHOLD_REG[0 : 0]; - `AHBL_REG(TX_FIFO_THRESHOLD_REG, 0, 1) + reg [FAW-1:0] TX_FIFO_THRESHOLD_REG; + assign txfifotr = TX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + `AHBL_REG(TX_FIFO_THRESHOLD_REG, 0, FAW) reg [0:0] TX_FIFO_FLUSH_REG; assign tx_fifo_flush = TX_FIFO_FLUSH_REG[0 : 0]; diff --git a/hdl/rtl/bus_wrappers/EF_UART_APB.pp.v b/hdl/rtl/bus_wrappers/EF_UART_APB.pp.v index 5e2373e..30be791 100644 --- a/hdl/rtl/bus_wrappers/EF_UART_APB.pp.v +++ b/hdl/rtl/bus_wrappers/EF_UART_APB.pp.v @@ -202,11 +202,11 @@ module EF_UART_APB #( wire [FAW-1:0] RX_FIFO_LEVEL_WIRE; assign RX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = rx_level; - reg [0:0] RX_FIFO_THRESHOLD_REG; - assign rxfifotr = RX_FIFO_THRESHOLD_REG[0 : 0]; + reg [FAW-1:0] RX_FIFO_THRESHOLD_REG; + assign rxfifotr = RX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; always @(posedge PCLK or negedge PRESETn) if(~PRESETn) RX_FIFO_THRESHOLD_REG <= 0; else if(apb_we & (PADDR[16-1:0]==RX_FIFO_THRESHOLD_REG_OFFSET)) - RX_FIFO_THRESHOLD_REG <= PWDATA[1-1:0]; + RX_FIFO_THRESHOLD_REG <= PWDATA[FAW-1:0]; reg [0:0] RX_FIFO_FLUSH_REG; assign rx_fifo_flush = RX_FIFO_FLUSH_REG[0 : 0]; @@ -219,11 +219,11 @@ module EF_UART_APB #( wire [FAW-1:0] TX_FIFO_LEVEL_WIRE; assign TX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = tx_level; - reg [0:0] TX_FIFO_THRESHOLD_REG; - assign txfifotr = TX_FIFO_THRESHOLD_REG[0 : 0]; + reg [FAW-1:0] TX_FIFO_THRESHOLD_REG; + assign txfifotr = TX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; always @(posedge PCLK or negedge PRESETn) if(~PRESETn) TX_FIFO_THRESHOLD_REG <= 0; else if(apb_we & (PADDR[16-1:0]==TX_FIFO_THRESHOLD_REG_OFFSET)) - TX_FIFO_THRESHOLD_REG <= PWDATA[1-1:0]; + TX_FIFO_THRESHOLD_REG <= PWDATA[FAW-1:0]; reg [0:0] TX_FIFO_FLUSH_REG; assign tx_fifo_flush = TX_FIFO_FLUSH_REG[0 : 0]; diff --git a/hdl/rtl/bus_wrappers/EF_UART_APB.v b/hdl/rtl/bus_wrappers/EF_UART_APB.v index df88a94..14f4324 100644 --- a/hdl/rtl/bus_wrappers/EF_UART_APB.v +++ b/hdl/rtl/bus_wrappers/EF_UART_APB.v @@ -125,9 +125,9 @@ module EF_UART_APB #( wire [FAW-1:0] RX_FIFO_LEVEL_WIRE; assign RX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = rx_level; - reg [0:0] RX_FIFO_THRESHOLD_REG; - assign rxfifotr = RX_FIFO_THRESHOLD_REG[0 : 0]; - `APB_REG(RX_FIFO_THRESHOLD_REG, 0, 1) + reg [FAW-1:0] RX_FIFO_THRESHOLD_REG; + assign rxfifotr = RX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + `APB_REG(RX_FIFO_THRESHOLD_REG, 0, FAW) reg [0:0] RX_FIFO_FLUSH_REG; assign rx_fifo_flush = RX_FIFO_FLUSH_REG[0 : 0]; @@ -136,9 +136,9 @@ module EF_UART_APB #( wire [FAW-1:0] TX_FIFO_LEVEL_WIRE; assign TX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = tx_level; - reg [0:0] TX_FIFO_THRESHOLD_REG; - assign txfifotr = TX_FIFO_THRESHOLD_REG[0 : 0]; - `APB_REG(TX_FIFO_THRESHOLD_REG, 0, 1) + reg [FAW-1:0] TX_FIFO_THRESHOLD_REG; + assign txfifotr = TX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + `APB_REG(TX_FIFO_THRESHOLD_REG, 0, FAW) reg [0:0] TX_FIFO_FLUSH_REG; assign tx_fifo_flush = TX_FIFO_FLUSH_REG[0 : 0]; diff --git a/hdl/rtl/bus_wrappers/EF_UART_WB.pp.v b/hdl/rtl/bus_wrappers/EF_UART_WB.pp.v index e48790e..98134e8 100644 --- a/hdl/rtl/bus_wrappers/EF_UART_WB.pp.v +++ b/hdl/rtl/bus_wrappers/EF_UART_WB.pp.v @@ -189,9 +189,9 @@ module EF_UART_WB #( wire [FAW-1:0] RX_FIFO_LEVEL_WIRE; assign RX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = rx_level; - reg [0:0] RX_FIFO_THRESHOLD_REG; - assign rxfifotr = RX_FIFO_THRESHOLD_REG[0 : 0]; - always @(posedge clk_i or posedge rst_i) if(rst_i) RX_FIFO_THRESHOLD_REG <= 0; else if(wb_we & (adr_i[16-1:0]==RX_FIFO_THRESHOLD_REG_OFFSET)) RX_FIFO_THRESHOLD_REG <= dat_i[1-1:0]; + reg [FAW-1:0] RX_FIFO_THRESHOLD_REG; + assign rxfifotr = RX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + always @(posedge clk_i or posedge rst_i) if(rst_i) RX_FIFO_THRESHOLD_REG <= 0; else if(wb_we & (adr_i[16-1:0]==RX_FIFO_THRESHOLD_REG_OFFSET)) RX_FIFO_THRESHOLD_REG <= dat_i[FAW-1:0]; reg [0:0] RX_FIFO_FLUSH_REG; assign rx_fifo_flush = RX_FIFO_FLUSH_REG[0 : 0]; @@ -200,9 +200,9 @@ module EF_UART_WB #( wire [FAW-1:0] TX_FIFO_LEVEL_WIRE; assign TX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = tx_level; - reg [0:0] TX_FIFO_THRESHOLD_REG; - assign txfifotr = TX_FIFO_THRESHOLD_REG[0 : 0]; - always @(posedge clk_i or posedge rst_i) if(rst_i) TX_FIFO_THRESHOLD_REG <= 0; else if(wb_we & (adr_i[16-1:0]==TX_FIFO_THRESHOLD_REG_OFFSET)) TX_FIFO_THRESHOLD_REG <= dat_i[1-1:0]; + reg [FAW-1:0] TX_FIFO_THRESHOLD_REG; + assign txfifotr = TX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + always @(posedge clk_i or posedge rst_i) if(rst_i) TX_FIFO_THRESHOLD_REG <= 0; else if(wb_we & (adr_i[16-1:0]==TX_FIFO_THRESHOLD_REG_OFFSET)) TX_FIFO_THRESHOLD_REG <= dat_i[FAW-1:0]; reg [0:0] TX_FIFO_FLUSH_REG; assign tx_fifo_flush = TX_FIFO_FLUSH_REG[0 : 0]; diff --git a/hdl/rtl/bus_wrappers/EF_UART_WB.v b/hdl/rtl/bus_wrappers/EF_UART_WB.v index e69edf1..184176d 100644 --- a/hdl/rtl/bus_wrappers/EF_UART_WB.v +++ b/hdl/rtl/bus_wrappers/EF_UART_WB.v @@ -125,9 +125,9 @@ module EF_UART_WB #( wire [FAW-1:0] RX_FIFO_LEVEL_WIRE; assign RX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = rx_level; - reg [0:0] RX_FIFO_THRESHOLD_REG; - assign rxfifotr = RX_FIFO_THRESHOLD_REG[0 : 0]; - `WB_REG(RX_FIFO_THRESHOLD_REG, 0, 1) + reg [FAW-1:0] RX_FIFO_THRESHOLD_REG; + assign rxfifotr = RX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + `WB_REG(RX_FIFO_THRESHOLD_REG, 0, FAW) reg [0:0] RX_FIFO_FLUSH_REG; assign rx_fifo_flush = RX_FIFO_FLUSH_REG[0 : 0]; @@ -136,9 +136,9 @@ module EF_UART_WB #( wire [FAW-1:0] TX_FIFO_LEVEL_WIRE; assign TX_FIFO_LEVEL_WIRE[(FAW - 1) : 0] = tx_level; - reg [0:0] TX_FIFO_THRESHOLD_REG; - assign txfifotr = TX_FIFO_THRESHOLD_REG[0 : 0]; - `WB_REG(TX_FIFO_THRESHOLD_REG, 0, 1) + reg [FAW-1:0] TX_FIFO_THRESHOLD_REG; + assign txfifotr = TX_FIFO_THRESHOLD_REG[(FAW - 1) : 0]; + `WB_REG(TX_FIFO_THRESHOLD_REG, 0, FAW) reg [0:0] TX_FIFO_FLUSH_REG; assign tx_fifo_flush = TX_FIFO_FLUSH_REG[0 : 0];