UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Reply

Will BUFGCE get optimized to FDCE ?

Newbie
Posts: 2
Registered: ‎07-18-2017

Will BUFGCE get optimized to FDCE ?

For a simple logic implementation of clock gating I used BUFGCE. When went through the schematics I noticed logic is implemented using FDCEs. But CE of FDCE are not used. My question is why BUFGCE didn't got optimized using CE in FDCE. Am I missing something here ? Please help.

Highlighted
Moderator
Posts: 1,637
Registered: ‎01-16-2013

Re: Will BUFGCE get optimized to FDCE ?

@tollinjose,

 

Are you using instantiation of BUFGCE? If yes, then it will not be optimized to FDCE. 

Can you share the snippet of code and its schematic?

 

--Syed

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
---------------------------------------------------------------------------------------------
Moderator
Posts: 5,501
Registered: ‎08-01-2008

Re: Will BUFGCE get optimized to FDCE ?

BUFGCE is a clock buffer with one clock input, one clock output and a clock enable line. FDCE is D Flip-Flop with Clock Enable and Asynchronous Clear.  BUFGCE cannot be optimized using CE in FDCE. 

Check these library guides for details 

https://www.xilinx.com/support/documentation/sw_manuals/xilinx13_2/7series_scm.pdf

https://www.xilinx.com/support/documentation/user_guides/ug362.pdf

 

--Example non gated clock 

 

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity normalclk is
port( clk : in std_logic;
      load : in std_logic;
      i : in std_logic;
     o : out std_logic
      );     
end normalclk;


architecture Behavioral of normalclk is

BEGIN
process(clk)
begin
if(rising_edge(clk)) then
if(load ='1') then
<= i;
end if;
end if;
end process;

end Behavioral;

 

--VHDL code for gated clock

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity gatedclk is
port( clk : in std_logic;
      load : in std_logic;
      i : in std_logic;
      o : out std_logic
      );     
end gatedclk;

architecture Behavioral of gatedclk is
signal gclk : std_logic;

BEGIN
gclk <= clk and load;
process(gclk)
begin
if(rising_edge(gclk)) then
o <= i;
end if;
end process;

end Behavioral;

Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
Newbie
Posts: 2
Registered: ‎07-18-2017

Re: Will BUFGCE get optimized to FDCE ?

yes. I was using instantiation of BUFGE. My circuit was very simple, I just implemented a simple four bit counter to which I gave clock through BUFGCE. You meant once we instantiate its hard wired? Optimization algorithm of xilinx wont touch it ? 

Moderator
Posts: 1,637
Registered: ‎01-16-2013

Re: Will BUFGCE get optimized to FDCE ?

@tollinjose,

 

 You meant once we instantiate its hard wired? Optimization algorithm of xilinx wont touch it ? 

As per my knowledge Yes. 

 

Regards,
Syed

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
---------------------------------------------------------------------------------------------