Skip to content

MasLiang/AutoClock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoClock

This project is a extension of VITIS-HLS to manage clock automatically for low-power HLS design. Currently, only support Xilinx Ultrascale and Ultrascale+.

Features (Continuously updating)

generate CRG automatically.

  1. PLL/MMCM/BUFGCE_DIV selection automatically

    e.g.,

    #pragma HLS inputclk clk_src 10
    void top(){
      #pragma HLS clkdomain clk1 20
      module_1();
      #pragma HLS clkdomain clk2 15
      module_2();
    };
    

    In this example, "clk_src" is connected to ap_clock. Since the frequency of "clk1" is 1/2 of "clk_src", the BUFGCE_DIV is used to generate it. For "clk2", PLL is used.

  2. rst_sync Reset for each clock domain will be generated automatically.

generate CDC circuit automatically according to INTERFACE type.

  1. Insert CDC circuits between different clock domain. The CDC circuit selection depends on the INTERFACE type.
  • FIFO interface: async-fifo
  • BRAM interface: async-bram
  • FSM :
    • set FSM at the fasest clock domain
    • expanding control signals
      • syncronize the edge if they are pose-sensitive
    • pipe for some states because of clock domain
  1. Updated original clock/reset related signals

clock multiplexering scheme for modules instantiated by multiple clock domains

  1. Insert clock mux to generate a new clock domain

  2. Generate selection signals

insert clock gates

  1. From high to low level

  2. Skip sub-modules of dataflow modules

  • if a dataflow modules is well optimized for streaming, sub-modules will always run with father module.

  • based on Xilinx Power Estimator

modify the interface to increase the maximum frequency

How to run:

  • install packages:

    • pyverilog
  • cd to the path of a benchmark, modify the path of AutoClock

  • "make xclbin" to generate bitstream

  • "make host" to generate host.exe

  • "host.exe -xclbin top.xclbin" to run it on FPGA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published