代码中优美的注释


// -------------------------------------------------------------------------------------------------------
//   USER ADDRESS:
// -------------------------------------------------------------------------------------------------------
//                        ___________________________________________________________________________
//  Counter Reconfig     |   is_dps      |   is_counter  |   M/N/C ID            |   C COUNTER INDEX |  
//                       |   1'b0        |   1'b1        |   3'b                 |   4'b             |  
//                       |---------------+---------------+-----------------------+-------------------|
//  DPS Reconfig         |   is_dps      |   is_counter  |   RSVD                |   C COUNTER INDEX |       
//                       |   1'b1        |   0'b1        |   3'b                 |   4'b             |
//                       |---------------+---------------+-----------------------+-------------------|
//  Analog Reconfig      |   is_dps      |   is_counter  |   BW/CP ID            |   RSVD            |       
//                       |   1'b0        |   1'b0        |   3'b                 |   4'b             |    
//                       |---------------+---------------+-----------------------+-------------------|
//  MIF Streaming        |   is_dps      |   is_counter  |   START_MIF ID        |   RSVD            |  
//                       |   1'b0        |   1'b0        |   3'b                 |   4'b             |    
//                       |---------------+---------------+-----------------------+-------------------|
//  Generic Reconfig     |   is_dps      |   is_counter  |   DPRIO_ADDRESS                           |   
//                       |   1'b         |   1'b         |   7'b                                     |    
//                       '---------------'---------------'-------------------------------------------'     
//
// -----------------
//  Analog Reconfig
// -----------------
// BW/CP ID :
//  - BW    = 3'b100
//  - CP    = 3'b010
//
// -------------------------------------------------------------------------------------------------------
//   USER DATA:
// -------------------------------------------------------------------------------------------------------
//
// Counter:
//  | odd_duty_en   | bypass_enable     |   hi7 ..  hi0     |   lo7 ..  lo0         |
//  |      17       |       16          |   15  ..  8       |   7   ..  0           |
// DPS:
//  |               RSVD                |   up_dn           |   num_phase_shifts    |
//  |      17       ..       4          |   3               |   2   ..  0           |
// 
//
// -------------------------------------------------------------------------------------------------------
//   USER DATA:
// -------------------------------------------------------------------------------------------------------
//                        ___________________________________________________________________________
//  Counter Reconfig     | odd_duty_en |  bypass_en  |      hi_div[7:0]      |     lo_div[7:0]       |  
//                       |      17     |     16      |       15  ..  8       |      7  ..  0         |  
//                       '-------------+-------------+-----------------------+-----------------------'
//                        ___________________________________________________________________________
//  DPS Reconfig         |                 RSVD                       |   up_dn   | num_phase_shifts |  
//                       |               17 .. 4                      |     3     |    2  ..  0      | 
//                       '--------------------------------------------+-----------+------------------'
//                        ___________________________________________________________________________
//  Analog Reconfig      |                 RSVD                |     bw_ctrl    |    cp_current      |  
//                       |               17 .. 10              |     9 .. 6     |     5  ..  0       | 
//                       '-------------------------------------+----------------+--------------------'
//                        ___________________________________________________________________________
//  Generic Reconfig     |                    RSVD                    |         DPRIO data           |  
//                       |                  17 .. 8                   |          7  ..  0            | 
//                       '--------------------------------------------+------------------------------'
//
// -------------------------------------------------------------------------------------------------------
//   DPRIO LATENCIES
// -------------------------------------------------------------------------------------------------------
//  READ Latencies:
//  readWaitTime    = 0 (# of extra cycles to hold read high after captured)
//  readLatency     = 2 (# of cycles for valid data)
//                          _______
//  Read:               ___|       |_______________________
//                          ___     ___     ___     ___
//  CLK:                ___|   |___|   |___|   |___|   |___
//
//  CYCLE:                 |   0   |   1   |   2   |
//                                          ________________
//  DPRIO READDATA:     ___________________|    DATAOUT
//
//  WRITE Latencies:
//  writeWaitTime   = 0     (one/current cycle write assert sufficient)
//  writelatency    = n/a   (meaningless, we're not getting data back)
//   
// ------------------------------------------------------------------------------------------------------- 








评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_1615549892

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值