7221 views|5 replies

2624

Posts

6

Resources
The OP
 

LTspice Tips Encrypted Simulation Library [Copy link]

When I used TI's simulation Spice model, I opened it and saw garbled code. I thought I had loaded it wrong, but later I found out that the code was encrypted. So is it to prevent me from taking advantage of it? Is it a magic modification?

Encrypt it up guys!!!

To use Ltspice for encryption, you need to use the command line that comes with Windows. It is still a bit difficult for those born after 1995 to use it, but this can't stop us from trying it out!

Be sure to copy the original when encrypting! ! ! ! ! !

WIN+R CMD to enter the console. The console operations are as follows

Microsoft Windows [Version 10.0.19044.1706]

(c) Microsoft Corporation. All rights reserved.

C:\Users\xutong>d:

D:\>cd Program Files\LTC\LTspiceXVII\

D:\ProgramFiles\LTC\LTspiceXVII>.\XVIIx64.exe -encrypt "C:\Users\xutong\Desktop\IS801.lib"

First, let's take a look at what it looks like before encryption, as follows

* define a PWM Generate

* Name is PWM_G means PWM Generate

* PWM output D1

* | PWM output D2

* | | Ground

.subckt IS801 D1 D2 GND

*in this here V1 is Vinitial V2 is Von

*Ncycles remove always have

*Vxxx n+ n- PULSE(V1 V2 Tdelay Trise Tfall Ton Tperiod Ncycles)

*setting dead time and frequency,Duty

.text DT="0.05u"

The encryption looks like this:

The encrypted image looks like this:

* LTspice Encrypted File

*

* This encrypted file has been supplied by a 3rd

* party vendor that does not wish to publicize

* the technology used to implement this library.

*

* Permission is granted to use this file for

* simulations but not to reverse engineer its

* contents.

*

* Begin:

60 F1 8B 33 F4 A0 C8 8F B4 3E 1E EF 6D 63 45 01

D1 77 9B A9 5C F1 84 38 29 FA 5C 81 76 E7 6D 37

A5 70 4E 82 11 E6 85 C7 22 7D 42 93 EC E8 CF F7

09 60 F5 8F 6A 13 3C 21 C8 D5 0F 3F 0E 7F A2 D9

39 29 5C F4 7A C5 8B D7 8F 6B EF 5B 16 13 39 0D

F9 70 B7 64 28 A8 20 5B 97 01 DF 92 5F 31 DF 57

F9 32 CF 78 7A 71 37 24 CD B6 00 7D E9 01 E6 01

11 0E 4D 36 40 AF 37 19 FF FF 2A 02 0F CF 80 0F

67 48 16 B7 72 8F DC F4 CD 69 1C E3 CB 37 80 89

CB 4F 20 3F 86 6E 4D 38 C3 21 2B 8B E9 A1 64 11

7A 66 24 E2 5A CA AE A0 64 6C 22 97 CD DA 80 DC

C6 5E 4D 90 CC B3 23 82 70 9F 73 01 17 93 B7 AF

4A 03 56 57 0F A2 11 C7 EC 81 52 16 24 B2 BE 45

94 A9 D3 E6 91 8C 91 88 5C 04 75 4C 98 F6 BE 1E

47 0B C4 EB 83 A4 CC 85 1C ED 38 77 9D 9B 4A 33

00 D5 3A 1E B7 8F 31 67 90 D2 9C 8B 00 F2 4C 06

88 71 67 58 94 5E F0 75 C6 25 A4 05 26 C9 61 04

13 71 33 B7 C6 32 B4 9E C2 96 51 2B 0A 41 73 69

A8 96 47 B4 87 1F DC 7F 64 B8 7F B3 65 F0 1D BE

C7 10 AE D3 FB B8 C1 06 52 F9 4F 7B 72 D7 B1 3C

32 FE CA 62 65 AF D7 60 CD ED A8 6E DF 49 1D 5C

7A FA 7B AA 1D C1 6E D7 FE 74 44 4D 79 47 C2 0E

EE E3 9E 2E C5 E9 BF 92 F2 DF 5F 42 26 9E D1 85

8A 0D A3 75 02 87 E4 4E 80 AC 5D AA 45 B4 11 9D

F1 0A 32 A7 CF D5 E4 71 24 5A 63 AC 3A AB 70 36

61 4C 3B 71 CA 24 FE 3B 0D D4 5A E8 C0 D3 61 A4

ED BE CD 45 4C E3 41 75 C2 29 EC AC 71 15 B4 4E

65 99 6D 3E 69 6A 2C CE 8F 98 8B 89 FE C3 DE 9C

B9 88 C7 34 1D 82 53 0A CB C3 6F 6F 15 82 C3 5E

92 5E 21 50 9B FE 7C 86 55 86 E0 2E 5D 9F F7 89

70 D5 81 16 CA 20 60 38 8F D0 9C DC AE B7 84 F7

29 D5 75 93 F1 CA 92 A4 78 71 6B FD 66 4E 99 AA

33 60 29 A0 82 BD 7C 88 5D E3 EF 8A 08 A9 59 EC

CF 43 EE AE 7A D3 3D 2C 5D CF BB 8E 6E 07 FE E7

6D 56 E7 A2 04 F0 E2 1F AF CD 3D 8B 5A C8 A3 2E

54 84 D3 9C 65 CB A6 40 35 E9 BF 39 42 40 5A 27

70 AB A2 30 9F 97 86 D0 10 75 69 88 9C 17 CD F7

E6 AF 42 0E 5A 66 47 73 75 13 40 32 B9 27 6B D9

98 80 27 26 C6 B3 8F 10 2B 3B 54 F5 E8 C2 B4 2B

2B 3B 7B 5B DD 33 0F 0A 9D A0 77 94 F2 05 73 78

9C 3F 03 B0 A4 A4 AD 9D 8D BB F4 DE BC EC CA 2E

AB F3 A3 2D C7 06 9B A6 BF 71 AC FD BB 4E 9C 37

FB A1 F9 3D C1 DC 1E 70 29 EC 1B 94 D5 4D 32 78

32 07 85 E8 1B 16 70 50 7E E7 69 F7 EA 09 30 AF

67 FF A0 75 D4 AD 56 1F F7 01 D5 38 82 4D EC 0A

20 51 2D 6B 39 B1 D3 24 8A 87 E6 5E EC 6E 94 56

F3 6E 9E F5 1E B2 9C 3D 69 D0 14 FE 38 5B 50 44

10 55 A8 00 D7 CA 5F B1 52 8A 81 B5 B8 98 11 CE

4F C1 7C 86 42 7C 92 CF 17 E5 1C CB 08 70 B8 22

FB FC 53 F5 C8 B1 38 A2 13 CB CA 76 AC 5E 8B 0C

07 D7 EB E4 80 18 9B B5 3D 1E CA 66 63 EF 51 9D

B0 3E 94 97 96 FD 1D 02 DD 67 3E 32 64 07 DE 9A

8F 1B 69 8D BD 24 3A 38 77 90 F6 C1 F5 EF 48 CF

EE DF 49 E9 14 61 BD 2B AB E8 86 20 CF 7C 8A 8C

C0 49 2C 6B D9 D6 BE B3 2D E9 A3 FA 3C 5D 72 E2

2C 3D EA A6 04 74 09 1A C0 74 FE 6C F6 E3 7C 98

7C 55 5D 05 BC C5 A4 8B FC 4A A9 40 5D 6F E8 02

80 82 29 37 2E E1 87 63 A4 97 FC A6 11 C6 65 82

9D 89 76 DF 8D 2A 5A 8B BB BD 4D 95 5A CC DA DE

78 A9 68 27 6B 0F BB E6 79 C4 A1 03 CC 34 5D CB

CD 44 3B CF F9 92 D6 BD 81 C5 3B 70 DB 5F B6 80

C1 BE 99 87 8A D0 57 E6 DE 17 68 85 64 DE 52 F9

6E 80 3A 66 DD 92 0B AF 06 C3 5E D3 A4 58 07 F7

07 E5 26 B6 D2 ED 7D 57 BF 09 7A 15 EC 9E 0E 49

C8 0E 92 8E 88 5E 15 39 F0 A6 97 10 3A 54 DB B7

01 1C 7B 5F 5A AC 29 85 82 63 A5 C8 7E 56 30 83

C0 45 B7 60 BA BA 8B 94 78 90 AE C0 30 DA 36 63

B9 AD E7 B8 09 CD 8F 74 F5 7E D9 9D 21 AF 4E 5B

58 ED C4 CC 10 C3 20 CB EA 44 9E CC 92 8E CB A7

37 47 A1 7E C7 29 42 2E 27 3A D0 02 AB 25 94 0B

CF 81 BF D4 85 E5 5C 1D E1 8A D4 C3 3E E6 17 97

B6 0D BD 99 81 97 B7 93 70 62 3A 24 E6 3A 22 D1

80 ED 8C 6C C4 55 1D 2D 9B 5D 1C F7 41 28 65 DE

42 FE AB 40 49 3A EC A6 D2 FA 11 EE 04 E4 F4 CE

EC 52 04 F0 BC 4D 8A FE 66 1B 63 DA C7 E9 3D 52

6D 00 E3 48 FA 73 89 C1 C6 BB 5E 2C 23 30 C3 0B

68 BB FD 24 3B 65 64 E2 E3 67 35 BE 79 66 F6 DD

70 D8 C9 9F 93 BB 66 5E F5 0C 79 9A F2 6E 77 95

E9 1A 8F 54 D3 4F 7C 2E 96 E4 4B 0B A3 4C 99 E7

D8 48 06 5B C2 96 30 04 31 BF 36 98 00 E9 EE D4

74 A6 58 6B AA 46 73 BC 09 59 0C C4 6B A3 C7 B0

B6 9C 93 05 54 47 8A EA B2 6E 0D 8A 99 9A 59 01

9A EA 48 D9 19 1C AE 0D 6D D9 E7 8F 0E A0 E1 C8

6B 06 B1 74 59 EA 75 E9 AC 6D E5 FF 88 6A 26 87

F3 F3 A5 73 90 67 17 E3 17 F2 B8 83 20 B7 38 AC

3B B8 E5 4A 48 6E AE A2 8F A4 A9 74 6C 33 4A F4

57 92 EA 21 B7 1D 03 D8 40 24 E8 B6 4A 47 C6 F1

C1 DF 68 D6 82 A7 20 AD 91 A5 27 A3 3B 21 37 E9

03 B0 9C 6A 7F A1 0B B9 C1 58 29 46 A6 7F 70 A1

6D 94 E9 DA 8E A7 02 9D 45 E3 B7 86 83 30 BF 64

59 CF 38 1B 50 BF BD AF 8A 6F 1E AB 86 14 9D 81

78 0D 95 03 BF 68 B9 CD B1 85 C3 1C 5C 29 36 37

BE D4 7A 9B 23 75 64 1D 2A 64 16 D3 01 E5 47 DF

37 F5 6D 29 0B 17 67 A5 E2 36 4A DE 06 C4 34 9C

2D FF 58 0B 3C 29 EB 06 DB 9B 9D D4 26 1F 46 99

79 37 AC 37 1A 9B E9 D7 B6 F5 3D 87 23 52 52 67

15 06 3D 5A A4 DD 3D 5F FE 11 C3 A8 C1 29 FB 62

EA AC 59 6D 2A 88 A9 A3 60 3F 75 93 E1 1E 8C CA

17 CA AF C4 F6 C2 4C FE 96 08 85 4F B3 8B 77 95

F5 7E 4F 6C D2 B3 81 F1 60 17 7A 73 82 38 E9 BB

9E 41 83 1F F6 6A 6B B9 F9 36 3F A8 AD 5F 88 79

73 82 CF F7 08 03 21 A4 75 88 10 41 D6 01 78 9F

8D E1 FF 08 3E 37 F4 6E 81 B2 5B 5A 9A 97 A4 93

1F 4F E6 EE 5F 87 CA 8A 17 A1 75 E6 53 92 08 BA

93 BD E8 31 6A F5 7C 43 B0 AA EA 68 B4 E9 01 E7

3A E1 C7 F2 66 54 27 36 F5 7A EE CE 00 F3 05 90

92 00 B1 82 C1 19 A9 53 1C 42 D5 96 6C C8 18 59

74 16 38 A5 5B 4F 4C AD FA B1 A4 40 18 96 9F F9

B7 F3 82 67 D7 81 ED E4 A9 01 5A 65 08 7E EF 0E

4F 7B F0 5A 9B B8 C6 BD FB 38 47 11 7A EE DF CC

C4 44 3B B3 0A 38 14 93 77 A3 EB EE C4 9C B9 AD

86 AD 7A 04 DC 7A FF BE 8F E4 DE 85 7F 30 F2 9C

68 AF EC 88 87 E4 48 4D E0 A9 F4 DF C3 3A B3 D1

48 17 37 42 5F 9E 30 67 3C ED 03 08 55 77 C1 80

F3 B6 DC B9 DA FF A3 D6 8C 2F CE EA BC 45 06 FB

37 F0 D4 28 C5 30 C7 D6 64 EF 54 76 F0 14 83 3B

BC 13 87 CD 3F 6F E7 47 AD 3B BB 41 DF 73 7D 63

24 BD 02 BC A7 F4 A3 7F DB B8 E6 91 EB D8 C2 BE

E0 5E 48 47 A6 56 E5 97 88 34 62 12 D7 78 13 FC

2E AC 76 2B D7 90 E6 4D B6 F7 E1 0A 82 89 3E 72

D8 F5 F3 1E ED 2C 3D 18 FC 80 FE 8D 0C 7F B1 5B

48 62 F8 80 B7 77 65 42 D8 5D 1B BC BF 51 0E 95

C6 2F 5C 69 AB D4 D9 7B 38 3D 8B 61 59 75 07 D3

84 A0 AF 6A 8B 1A E3 75 7A B2 89 C7 5C F9 F8 AA

DA 3A A8 91 06 41 EB 72 07 A7 94 8F F7 15 26 B7

CA 5D 79 52 61 46 8B B9 A9 AF 37 91 FC 6E 47 A7

0C 3C 70 56 3D 6D 37 05 A8 AD 80 ED 5F C9 F7 8C

0A A5 92 59 A2 D1 74 62 1E 47 4C DD 80 65 2E EF

45 D8 84 58 AD 5B EA B5 C6 3D 09 3C 41 95 60 38

83 75 C8 2F F7 EB C1 05 C3 A1 30 BA 64 D3 34 DB

23 04 1E 8E 91 F5 25 3E 76 76 9E 8F 20 BE B8 83

20 7E 37 B3 E6 8C 7A F3 4B 45 B1 E5 38 DA 9E 88

56 87 A6 CE 1E A9 6A D1 20 A6 C1 58 D6 1A 64 E2

26 78 CF 22 2C F2 1C 89 CD 57 CC 21 5F AB F7 BF

B5 36 4D 33 4B C8 29 1F C6 C3 28 72 3C ED E8 1D

4F A5 22 9E 9F 63 70 4E 41 93 91 35 DC 76 FA 74

BC 87 C4 FA 27 71 68 65 7C 94 BC 89 53 65 42 59

16 A8 E6 1E FE 44 EC CA 92 BC 79 35 C7 97 49 59

5B DD BF 63 E1 B2 55 B1 C7 DF BB 98 7A 24 BE 9D

4F D2 D5 B3 B8 04 04 85 DB 4E 01 EB 5F 52 BF 45

C8 12 AE 16 36 6F F1 36 15 88 91 7E BA 62 C3 A9

EA 3E 22 AE 03 67 60 02 4F D8 E0 40 B0 E5 EB F9

30 C5 38 AB EE 18 DC 4E 69 E2 0F 39 DA 41 FA A0

36 7B F7 8F 67 C6 FA 69 93 EC 91 02 9E 02 82 08

2F 4B 84 32 07 A4 FB AB BB 3E 39 BE A6 81 CA 7B

B7 F4 12 92 40 C3 50 78 81 C7 98 B0 86 3E 95 91

DA 24 94 C2 0B 31 72 11 49 51 07 82 A5 3C D7 EE

EC F6 A0 CA 46 49 3D 48 11 B2 07 E8 CE 35 4C 85

35 1D D4 F3 6C D2 25 74 1D 4A 66 EB 39 19 66 4F

1F F0 03 19 22 F1 F1 D7 A8 5E 83 F1 7F DB 83 CC

63 3B E7 C4 B7 0E 17 77 D1 25 5A 32 FC 3E 58 65

56 C2 D8 A6 82 3C D9 57 5E 9A DE E2 43 86 9B A1

F9 BA DD 3B 25 78 AE 85 37 6D EB 3B BA DE BE 35

72 65 E9 2E 9A 43 3D EF 31 0C 54 9A E0 D9 34 61

9F B7 B2 EE 9E 29 F1 25 6C 64 D1 84 98 07 9A F7

40 AB DA B7 43 B7 49 2A A4 04 A8 31 4D 2E 5D E2

51 54 85 99 16 F7 98 8F 44 E0 66 A1 25 B9 D3 7B

B2 BE DA AE FE BA 74 75 1C DC C6 87 7E 48 D4 5A

74 3C EC 65 C5 77 03 05 8F 2D 4E 03 B9 CB FB 32

36 B7 B4 39 0D 61 EA 81 9B 9F 31 ED AA 10 31 DE

4B C2 65 D1 DB EB 95 88 FA 30 36 75 9E 72 32 62

D6 AE 57 99 82 A4 06 48 6C 5C CB 5C 62 92 6F 1E

14 F6 83 91 D7 81 0E 76 56 48 DA C9 B7 42 AA 78

EE 8C 14 0B 82 B5 3B C5 E0 5A E6 43 38 5E D1 EC

61 60 98 93 8C 53 A4 80 79 B2 8B B1 64 1A 78 7B

D8 5C A5 1F F3 A4 95 03 61 AF 3A 8C 34 A0 FF EA

* End 118266079 704268710

Then, the simulation results are the same.

However, after encryption, the LTspice model symbols cannot be retained, so you need to prepare the model symbols for transmission. Otherwise, others will not be able to simulate even if they get the simulation library code.

That’s all for today. Bye~

e-mail:

This post is from Analog electronics

Latest reply

How can I quickly find out that these code manuals contain spice codes?   Details Published on 2022-12-8 19:29
Personal signature

希望做一些大家觉得好用的东西!


2624

Posts

6

Resources
2
 
IS801仿真.zip (1.46 KB, downloads: 3)

The manual is as follows

This post is from Analog electronics
 
Personal signature

希望做一些大家觉得好用的东西!

 

2624

Posts

6

Resources
3
 

Sharing a simulation code to generate pwm

* design by xutong
* define a PWM Generate
* Name is PWM_G means PWM Generate
*             FreqCrtl
*             |      PWM output+
*             |      |  PWM output-
*             |      |  |  Ground
.subckt PWM_G COMPIN PH PL GND COMPOUT
*
*  COMPIN Voltage Ctrl Chip OutputFrequency
*  So we choose  Rxxx  Monitor Input Voltage variation 
*
*in this here V1 is Vinitial V2 is Von
*Ncycles remove always have
*Vxxx n+ n- PULSE(V1 V2 Tdelay Trise Tfall Ton Tperiod Ncycles)
*setting  dead time and frequency,Duty                      
.text DT="1u"
.text Freq="100K"
.text Duty="0.5"
R1  COMPIN GND  100K
Vcomp COMPOUT GND VALUE={V(COMPIN)}
Vph1 PH     GND PULSE(0 5 1m 0.01u 0.01u {{1/|Freq|}*|Duty|-|DT|} {1/|Freq|})
*          if function is an operation,you need to add{}                              
Vpl1 PL     GND PULSE(0 5 {1m+{1/|Freq|}/2} 0.01u 0.01u {{1/|Freq|}*|Duty|-|DT|} {1/|Freq|})
.ends

This post is from Analog electronics
 
Personal signature

希望做一些大家觉得好用的东西!

 
 
 

2624

Posts

6

Resources
4
 

I found that there is spice code in the avago manual, HCNR200.

This post is from Analog electronics
 
Personal signature

希望做一些大家觉得好用的东西!

 
 
 

2w

Posts

341

Resources
5
 

How can I quickly find out that these code manuals contain spice codes?

This post is from Analog electronics

Comments

I couldn't find it quickly, I just found it by accident when reading the manual  Details Published on 2022-12-8 19:47
 
 
 
 

2624

Posts

6

Resources
6
 
qwqwqw2088 posted on 2022-12-8 19:29 How can I quickly find the spice codes in these code manuals

I couldn't find it quickly, I just found it by accident when reading the manual

This post is from Analog electronics
 
Personal signature

希望做一些大家觉得好用的东西!

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list