Skip to content

Commit

Permalink
XC2CDevice: added config memory dimensions for all devices
Browse files Browse the repository at this point in the history
azonenberg committed Jun 13, 2017
1 parent 84e6350 commit 571e5a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hdl/xc2c-model/XC2CDevice.v
Original file line number Diff line number Diff line change
@@ -36,13 +36,23 @@ module XC2CDevice(
function integer ConfigMemoryWidth(integer cells)
case(cells)
32: ConfigMemoryWidth <= 260;
64: ConfigMemoryWidth <= 274;
128: ConfigMemoryWidth <= 752;
256: ConfigMemoryWidth <= 1364;
384: ConfigMemoryWidth <= 1868;
512: ConfigMemoryWidth <= 1980;
default: ConfigMemoryWidth <= 0;
endcase
endfunction

function integer ConfigMemoryDepth(integer cells)
case(cells)
32: ConfigMemoryDepth <= 49;
64: ConfigMemoryDepth <= 97;
128: ConfigMemoryDepth <= 81;
256: ConfigMemoryDepth <= 97;
384: ConfigMemoryDepth <= 121;
512: ConfigMemoryDepth <= 161;
default: ConfigMemoryDepth <= 0;
endcase
endfunction

0 comments on commit 571e5a6

Please sign in to comment.