Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
66 lines (53 loc) · 1.8 KB

File metadata and controls

66 lines (53 loc) · 1.8 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
63
64
65
66
# Copyright (c) 2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory
# Written by Geoff Cleary <gcleary@llnl.gov>
# LLNL-CODE-734258
#
# All rights reserved.
# This file is part of STK Address Converter. For details, see
# https://github.com/LLNL/STKAddressConverter. Licensed under the
# Apache License, Version 2.0 (the “Licensee”); you may not use
# this file except in compliance with the License. You may
# obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the license.
inputs: library, rail, column, side, row
sanity checks:
library >= 1
1 <= rail <= 4
-2 <= column <= 2 and column != 0
side == 1
1 <= row <= 4
calculate ACSLS LSM
( (4 * (library - 1)) + rail ) - 1
calculate ACSLS drive ID
2 dimensional array of ACSLS drive IDs:
2 1 -1 -2
+--+--+--+--+
0 |12| 8| 4| 0| 1
+--+--+--+--+
1 |13| 9| 5| 1| 2
+--+--+--+--+
2 |14|10| 6| 2| 3
+--+--+--+--+
3 |15|11| 7| 3| 4
+--+--+--+--+
0 1 2 3
we'll use the column and row to index into the above array.
SL8500 row to array row is easy -> subtract 1
SL8500 column to array column:
multiply by -1
SL8500 column numbers: -2 -1 1 2
array column numbers: 0 1 2 3
if negative, add 2
if positive, add 1
SL8500 column numbers: 0 1 2 3
arrau column numbers: 0 1 2 3
index into array using array row,column that we've calcuated to retrieve ACSLS drive ID
outputs: LSM, drive ID, (return error)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.