u24c02
Advanced Member level 1
Hi
i just want to implement global clock gating.
for example the following code.
But The problem is that global clock gating is not well implement.
My intend is that INC0,INC1,INC2 is working as global clocking.
But The result is not well implement in my intend.
So i wnat to know how am i do for global clock gating implementation ?
i just want to implement global clock gating.
for example the following code.
But The problem is that global clock gating is not well implement.
My intend is that INC0,INC1,INC2 is working as global clocking.
But The result is not well implement in my intend.
So i wnat to know how am i do for global clock gating implementation ?
Code:
module counter (CLK, RESET_, INC0,INC1,INC2, COUNT);
input CLK;
input RESET_;
input INC0;
input INC1;
input INC2;
output [2:0] COUNT;
reg [2:0] COUNT;
...
...
wire ck0;
wire ck1;
wire ck2;
assign ck0 = clk && INC0;
assign ck1 = clk && INC1;
assign ck2 = clk && INC2;
block_1 u_block1(
.clk (clk),
.en (ck0),
...
...
)
block_2 u_block2(
.clk (clk),
.en (ck1),
...
...
)
block_3 u_block3(
.clk (clk),
.en (ck2),
...
...
)
...
...
endmodule
Last edited by a moderator: