Skip to content

Commit

Permalink
Added remaining MMCM features to make it run on HW
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
  • Loading branch information
mkurc-ant committed Nov 17, 2020
1 parent ac03288 commit f812cdb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xc/common/primitives/mmcme2_adv/mmcme2_adv.pb_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@
ZINV_RST = ZINV_RST
ZINV_PSEN = ZINV_PSEN
ZINV_PSINCDEC = ZINV_PSINCDEC
COMP.ZHOLD = COMP_ZHOLD
COMP.Z_ZHOLD = COMP_Z_ZHOLD
STARTUP_WAIT = STARTUP_WAIT
SS_EN = SS_EN
DIVCLK_DIVCLK_HIGH_TIME[5:0] = DIVCLK_DIVCLK_HIGH_TIME
DIVCLK_DIVCLK_LOW_TIME[5:0] = DIVCLK_DIVCLK_LOW_TIME
DIVCLK_DIVCLK_NO_COUNT = DIVCLK_DIVCLK_NO_COUNT
Expand Down
7 changes: 7 additions & 0 deletions xc/xc7/techmap/cells_map.v
Original file line number Diff line number Diff line change
Expand Up @@ -5209,6 +5209,13 @@ output [15:0] DO
.ZINV_PSEN (INV_PSEN),
.ZINV_PSINCDEC (INV_PSINCDEC),

// Compensation
.COMP_ZHOLD (COMPENSATION == "ZHOLD"),
.COMP_Z_ZHOLD (COMPENSATION != "ZHOLD"),

// Spread spectrum
.SS_EN (1'b0), // TODO: Disable for now

// Straight mapped parameters
.STARTUP_WAIT(STARTUP_WAIT == "TRUE"),

Expand Down
8 changes: 8 additions & 0 deletions xc/xc7/techmap/cells_sim.v
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,14 @@ output DO15

parameter [0:0] STARTUP_WAIT = 1'd0;

// Compensation
parameter [0:0] COMP_ZHOLD = 1'd0;
parameter [0:0] COMP_Z_ZHOLD = 1'd0;

// Spread spectrum
parameter [0:0] SS_EN = 1'd0;
// TODO: Fuzz and add more

// Tables
parameter [9:0] TABLE = 10'd0;
parameter [39:0] LKTABLE = 40'd0;
Expand Down

0 comments on commit f812cdb

Please sign in to comment.