| Design Compiler, Registers & Synthesis Runtime |
|
|
|
|
Recently, I was working on a (not so big) module which required use of big registers. While synthesizing this module, DC was taking more than 4 hours of time on certain machine and it was becoming very frustrating. Finally I gave up and decided to investigate and address this issue. Following is the experiment information and possible fixes. Hypothetical Requirements 3 sets of counters are needed to maintain status of various channels (512 channels). Each counter is 12 bit wide and at any given event, 6 counters from a set of counters may be accessed. In verilog, these counters can be declared as followed reg [11:0] A[0:511]; reg [11:0] B[0:511];
reg [11:0] C[0:511]; There is a combinatorial logic reading these counters by providing two index variables - one is 4 bit wide (16) and another is 5 bit wide (32). Index is calculated by concatenating these two variable (16*32 = 512). Read and write code may look like as followed input reg [3:0] index0; input reg [4:0] index1; output wire [11:0] dout; input wire [11:0] din; wire [8:0] index = {index0, index1}; assign dout = A[index]; .... A[index] <= din; ....Ofcourse, there are 6 access paths for each of the counter set. Since this module has lots of flops (3*12*512 = 18K), DC is taking more than 4 hours to synthesize this module.
Solutions to Improve DC runtime
Straight way to reduce combinations is to perform logic partition explicitly. For our example, there is array of 512 registers which are accessed by two index variables. We can simply divide 512 registers in 16 groups, each group accessible by index0. Each group holds 32 registers and is indexed by index1. Declaration for this scenario will look like,
Update: Currently, I have applied above three in my design and able to reduce synthesis time to ~39 minutes. I am still experimenting and will update if anything changes. Meanwhile, suggestions are welcome.
Only registered users can write comments!
Powered by !JoomlaComment 4.0 beta2
|
|||||||||
| Last Updated on Monday, 02 October 2006 14:12 |





