Skip to content

Commit

Permalink
Add LCMXO2-2000HC device.
Browse files Browse the repository at this point in the history
  • Loading branch information
cr1901 committed Jun 12, 2020
1 parent 03789cd commit 972326b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
16 changes: 14 additions & 2 deletions devices.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@
"fuzz": 1
},
"LCMXO2-640HC": {
"packages": ["QFN32"],
"packages": ["QFN48"],
"idcode": "0x012b9043",
"frames": 209,
"frames": 211,
"bits_per_frame": 888,
"pad_bits_after_frame": 0,
"pad_bits_before_frame": 0,
Expand All @@ -162,6 +162,18 @@
"max_col" : 21,
"col_bias" : 1,
"fuzz": 1
},
"LCMXO2-2000HC": {
"packages": ["TQFP100"],
"idcode": "0x012bb043",
"frames": 420,
"bits_per_frame": 1272,
"pad_bits_after_frame": 0,
"pad_bits_before_frame": 0,
"max_row" : 15,
"max_col" : 25,
"col_bias" : 1,
"fuzz": 1
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion libtrellis/src/Tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ map<pair<int, int>, pair<int, int>> center_map = {
// 640HC
{make_pair(8, 17), make_pair(3, 7)},
// 1200HC
{make_pair(12, 21), make_pair(6, 12)}
{make_pair(12, 21), make_pair(6, 12)},
// 2000HC
{make_pair(15, 25), make_pair(8, 13)},
};

// Universal function to get a zero-indexed row/column pair.
Expand Down

0 comments on commit 972326b

Please sign in to comment.