Skip to content

Commit

Permalink
fix vcs compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
NouranAbdelaziz committed Jul 9, 2024
1 parent 0e84466 commit 77e4455
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EF_TMR32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ A 32-bit timer and PWM generator with the following features:
license: APACHE 2.0
author: Mohamed Shalan
email: [email protected]
version: v1.0.7
date: 08-07-2024
version: v1.0.8
date: 09-07-2024
category: digital
tags:
- timer
Expand Down
2 changes: 1 addition & 1 deletion hdl/rtl/bus_wrappers/EF_TMR32_APB.pp.v
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module EF_TMR32_APB #(
localparam RIS_REG_OFFSET = 16'hFF08;
localparam IC_REG_OFFSET = 16'hFF0C;

reg [0:0] GCLK_REG;
wire clk_g;
wire clk_gated_en = GCLK_REG[0];

Expand Down Expand Up @@ -178,7 +179,6 @@ module EF_TMR32_APB #(
PWMFC_REG <= PWDATA[16-1:0];

localparam GCLK_REG_OFFSET = 16'hFF10;
reg [0:0] GCLK_REG;
always @(posedge PCLK or negedge PRESETn) if(~PRESETn) GCLK_REG <= 0;
else if(apb_we & (PADDR[16-1:0]==GCLK_REG_OFFSET))
GCLK_REG <= PWDATA[1-1:0];
Expand Down
2 changes: 1 addition & 1 deletion hdl/rtl/bus_wrappers/EF_TMR32_APB.v
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ module EF_TMR32_APB #(
localparam RIS_REG_OFFSET = `APB_AW'hFF08;
localparam IC_REG_OFFSET = `APB_AW'hFF0C;

reg [0:0] GCLK_REG;
wire clk_g;
wire clk_gated_en = GCLK_REG[0];

Expand Down Expand Up @@ -149,7 +150,6 @@ module EF_TMR32_APB #(
`APB_REG(PWMFC_REG, 0, 16)

localparam GCLK_REG_OFFSET = `APB_AW'hFF10;
reg [0:0] GCLK_REG;
`APB_REG(GCLK_REG, 0, 1)

reg [2:0] IM_REG;
Expand Down

0 comments on commit 77e4455

Please sign in to comment.