-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathim_litho_research.php
More file actions
63 lines (54 loc) · 1.8 KB
/
Copy pathim_litho_research.php
File metadata and controls
63 lines (54 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
* iTXTech FlashDetector
*
* Copyright (C) 2018-2023 iTX Technologies
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
// Research Code for IMFT Lithography / Process Node
require_once "env.php";
use iTXTech\FlashDetector\FlashDetector;
use iTXTech\SimpleFramework\Console\Logger;
use iTXTech\SimpleFramework\Console\TextFormat;
Logger::$logLevel = 0;
function decode(string $id, string $litho = "") {
$info = FlashDetector::decodeFlashId($id);
$str = "";
foreach ([
"FlashId" => $id,
"DieSize" => ($info->density / $info->die),
"Revision" => $info->ext["revision"] ?? "unknown",
"Cell" => $info->cellLevel,
"Plane" => $info->plane,
"PageSize" => $info->pageSize,
"Litho" => $litho
] as $k => $v) {
$str .= $k . " " . TextFormat::GOLD . $v . TextFormat::WHITE . " ";
}
Logger::info($str);
}
foreach ([
// ["2C,D7,94,3E,84,00", "L63A"],
// ["2C,88,05,C6,89,00", "L63B"],
["2C,68,04,4A,A9,00", "L73A"],
["2C,88,04,4B,A9,00", "L74A"],
["2C,84,C5,4B,A9,00", "L84A"],
["2C,84,64,3C,A5,00", "L85A"],
["2C,84,64,3C,A9,04", "L85C"],
["2C,84,64,54,A9,00", "L95B"]
] as $i) {
decode(str_replace([",", " "], "", $i[0]), $i[1]);
}