Assignment_2A_manual
.pdf
keyboard_arrow_up
School
Texas A&M University *
*We aren’t endorsed by this school
Course
426
Subject
Electrical Engineering
Date
Dec 6, 2023
Type
Pages
5
Uploaded by CaptainFly3128
Assignment 2 - Phase A
AI vs. Humans: Hardware Trojan Detection
Date: 10/18/2023 (Wednesday)
Assignment Description:
In this assignment, you will play the role of an attacker who inserts a hardware Trojan (HT) to
disrupt the intended functionality of an integrated circuit (IC) design. You will be provided
benchmark circuits, and you will be required to insert HTs following different strategies. This
assignment is divided into two phases. For each phase, you will know the success rate of the
strategies. You will then need to analyze the strategies and reason about which strategy works
how well and why.
In the current phase, phase A, you are supposed to evade detection from a non-AI detection tool
called TARMAC. All information in this manual after this paragraph is only about phase A. You
will be provided a separate lab manual for phase B in due course of time.
For this assignment, you are expected to:
i.
Insert HTs using four strategies for the benchmarks provided to you.
ii.
Evaluate the HTs against a non-AI-based HT detection tool, TARMAC.
iii.
Analyze the four strategies and the reason for their performance.
Resources required for this assignment:
i.
Design
files,
supporting
libraries,
all
necessary
code,
and
state-of-the-art HT
detection tools---these are included in the zipped folder “Assignment_2A”.
ii.
Access to the
Apollo server (apollo.ece.tamu.edu)
– you should already have access
to this (if not, please email the TA).
Phase A: Insert and Evaluate Strategies for Inserting Hardware Trojans
against a Non-AI-based Detection Tool
In this phase, you will insert HTs using the four strategies provided to you and evaluate the
strategies against a non-AI-based HT detection tool, TARMAC. Your objective is to analyze the
four strategies in terms of their performance and complexity and reason about them. All the files
needed for this phase are in the “Assignment_2A” folder. The contents of this folder are as
follows:
1.
original_files - this folder contains the original Verilog netlists for the benchmark circuit -
c5315, c6288, and c7552.
2.
test_patterns - this folder contains the test patterns from TARMAC. You will use these
patterns to evaluate your HT-inserted netlists and the four strategies.
3.
src - this folder contains all the source codes and libraries needed for phase A.
a.
Trojan_generator_and_evaluator.py
-
this
script
is
for
inserting
HTs
and
evaluating them using test patterns from TARMAC
b.
libsp_parser.py - supporting code for parsing a library file
c.
lib - folder containing some required library files
4.
saved_simulations - this folder contains the simulation results for the original Verilog
files. The data from the files in this folder is used in the codes to get the probabilities of
the nets in the circuit.
5.
TARMAC.pdf - this is the research paper detailing the workings of the TARMAC HT
detection technique.
Before going over the details of the assignment and how to insert and evaluate HTs, you need to
install some packages required for executing the provided codes. This setup process is explained
below.
Setting up:
1.
Log into your apollo.ece.tamu.edu (Apollo server) account using your NetID and your
password. If you are not familiar with how to do that, you can log into your TAMU
VOAL account, open MobaXterm, and follow the instructions mentioned here:
link
.
2.
Once on the Apollo server, upload the “Assignment_2A.zip” file and unzip it with the
following command on the terminal
unzip Assignment_2A.zip
3.
Navigate to the “src” folder within the newly unzipped “Assignment_2A” folder and
enter the following commands one by one on the terminal to install some required
packages:
pip install --user numpy
pip install --user networkx==1.11
pip install --user pycosat
pip install --user tqdm
pip install --user pyqt5
Next, we outline the steps you need to take in order to insert and evaluate HTs in the original
Verilog netlists.
To insert and evaluate HTs:
1.
Navigate to the “src” folder and run the Trojan_generator.py script with the command
python3 Trojan_generator_and_evaluator.py
2.
You will be prompted to enter the name of the benchmark you want to insert HT in.
3.
Once you enter a valid benchmark name, you will be prompted to choose a strategy for
generating the HTs. You can choose from four strategies: selecting rare nets that are very
far from each other, selecting rare nets that are at an intermediate distance from each
other, selecting rare nets that are very close to each other, or selecting rare nets randomly.
You need to enter “1” for selecting the first strategy (selecting rare nets that are very far
from each other), “2” for selecting the second strategy (selecting rare nets that are at an
intermediate distance from each other), and so on.
4.
Once you select the strategy, the script will automatically generate and evaluate 50 HTs
according to your chosen strategy. This step can take a couple of minutes. Once all 50
HTs are generated and evaluated, the success rate, i.e., the percentage of HTs that evade
detection, will be printed out.
5.
Since there is randomness in each of the four strategies, you should run all four strategies
for each benchmark multiple times and save the success rates you get for the different
strategies.
6.
Once you have enough trials for each strategy for each benchmark circuit, you need to
plot the distribution of the success rates for each strategy for each benchmark circuit. You
are free to use a plotting tool of your choice, but you should have a
box plot
that looks
like this for each of the three benchmark circuits:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Q.3 For Resistance temperature detectors (RTDS)
I) What's the principle of operation for Resistance temperature detectors?
2) Explain with drawing the purpose of connecting the detector to Wheatstone bridge.
3) Mention the applications of Resistance temperature detectors.
arrow_forward
correct answer or dislike
on keyboard
Which of the following will happen if the boron implantation is performed without the photoresist layer?
A)Polysilicon will be left undoped.
B)n-wells will turn into p-wells.
C)Field oxide will be damaged.
D)NMOS devices will be left unisolated from n-wells.
E)Threshold voltages will remain unadjusted.
F)All active regions outside channel areas will be p-type doped.
arrow_forward
What are the major components of a SCADA system in a Nuclear Power Plant? Provide its functions.
State how does a SCADA system in a Nuclear Power Plant works.
arrow_forward
To implement 8-to-1 line multiplexer using two 4-to-1 line
multiplexer(MUX):
O a. The third selctor is connected to the enable line of the first
and second MUX.
O b. Only the enable line of the first MUX must be connected
dirictly to the enable for the second MUX.
O c. The third selctor is connected to the enable line of the first
MUX which is connected through inverter to the enable of
the second MUX.
O d. All inputs lines for the first mux must be connected to the
input lines for the second mux.
arrow_forward
Q1/Draw circuit for asynchronous counter (mod-13), it has negative
edge, then write truth table for this circuit.
Note (clear and preset are Active High)
arrow_forward
SCR's gate recovery time is _____________sec, for the device which is having reverse recovery time is 37 sec and total commutation time is 65 sec.
arrow_forward
Give at least two processes (1 industrial plant and 1 Power plant) where a SCADA system is applied or used. Identify the major components of a SCADA system on those processes that you have chosen and explain each process. Show pictures for each major component involved.
arrow_forward
Want to confirm with my own work
arrow_forward
find the answer in less than 30 min pls.
arrow_forward
Why is it so important to learn and understand the fundamentals of electronics in technical fields? Provide an example of how choosing the right device for an IoT system is made easier by knowing the electronics at play.
arrow_forward
Don’t Copy Others work.
Here is only one question. Don't say multiple question. If you are not able to provide complete question answer kindly skip the question.
Sub: Optoelectronic
Dept: EEE
arrow_forward
Are the following statements correct or wrong? Justify your answer. (a) GTO requires very low current applied to its gate to be turn off. (b) IGBT is a voltage driven device.
(c) BJT is more efficient than IGBT in high power applications.
(d) Thyristors are used only for low voltage, low current applications. (e) MOSFETs are used for high frequency applications.
arrow_forward
Don't copy others work. provide correct solution
Question (1)(a) Define homo-structure and hetero-structure devices with appropriate schematic diagram of such structures. (b) Explain the concepts of lattice matched hetero-structure.
Sub: Optoelectronics
Dept:EEE
arrow_forward
1-GTO needs very large reverse gate current normally ____________ of anode current
2-The device which has expensive and complex base drive circuit along with lowest currentgain characteristics is ________________ .
arrow_forward
1. Are the following statements correct or wrong?
(a) Thyristors are used only for low voltage, low current applications.
(b) MOSFETs are used for high frequency applications.
(c) BJT is more efficient than IGBT in high power applications.
(d) GTO requires very low current applied to its gate to be turn off.
(e) IGBT is a voltage driven device.
2. Are the following statements correct or wrong?
(a) Thyristors are preferred to be used in the output stage of 10W IMHz transmitter.
(b) MOSFETs are preferred to be used for 1000 kW motor control circuit.
(c) TRIAC is used for lighting dimmer circuits.
(d) IGBT in high voltage de rectifier circuits (above 5kV level).
(e) BJT is the fastest switching device in power applications.
Choose the correct answer for the following questions (3-7):
3. The conditions which must be satisfied to turn on the thyristor with its current is
more than its latching current are:
(a) The anode is more positive than the cathode and a positive current pulse is…
arrow_forward
1. Are the following statements correct or wrong?
(a) Thyristors are used only for low voltage, low current applications.
(b) MOSFETs are used for high frequency applications.
(c) BJT is more efficient than IGBT in high power applications.
(d) GTO requires very low current applied to its gate to be turn off.
(e) IGBT is a voltage driven device.
2. Are the following statements correct or wrong?
(a) Thyristors are preferred to be used in the output stage of 10W IMHz transmitter.
(b) MOSFETs are preferred to be used for 1000 kW motor control circuit.
(c) TRIAC is used for lighting dimmer circuits.
(d) IGBT in high voltage de rectifier circuits (above 5kV level).
(e) BJT is the fastest switching device in power applications.
Choose the correct answer for the following questions (3-7):
3. The conditions which must be satisfied to turn on the thyristor with its current is
more than its latching current are:
(a) The anode is more positive than the cathode and a positive current pulse is…
arrow_forward
ANSWER 4 AND 5 ONLY
arrow_forward
ketch the following for the device which uses pulse gate signals to turn ON and turn OFF process.
(i) Cross sectional view
(ii) Static characteristic
arrow_forward
Differentiate MCB and RCD and Explains its purpose in an installation?
hp
近
arrow_forward
The Government decides to fix an automatic street light system for
which light sensors are used. For each area, they decided to place
four light sensors. The street light is ON if it receives positive output
from at least two sensors else OFF. Design a combinational circuit
to implement the required task using
a) only two input NAND gate
b) only two input NOR gates.
State any assumption made.
arrow_forward
4. Are the following statements correct or wrong? Justify your answer.
(a) GTO requires very high current applied to its gate to be turn off.
(b) IGBT is a current driven device.
(c) IGBT is more efficient than BJT in high power applications.
(d) Thyristors are used only for low voltage, low current applications.
(e) MOSFETS are used for low frequency applications.
arrow_forward
a. Complete the truth table for the circuit.b. What mathematical function does this circuitperform, and what do the outputs signify?c. How many standard 14-pin ICs would it take toconstruct this circuit?
arrow_forward
Find the minimum size EMT raceway required to carry three (3) 500kcmil, three (3) 3/0AWG and two (2) #6 AWGconductors
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:9781337516549
Author:Simmons
Publisher:CENGAGE LEARNING - CONSIGNMENT
Related Questions
- Q.3 For Resistance temperature detectors (RTDS) I) What's the principle of operation for Resistance temperature detectors? 2) Explain with drawing the purpose of connecting the detector to Wheatstone bridge. 3) Mention the applications of Resistance temperature detectors.arrow_forwardcorrect answer or dislike on keyboard Which of the following will happen if the boron implantation is performed without the photoresist layer? A)Polysilicon will be left undoped. B)n-wells will turn into p-wells. C)Field oxide will be damaged. D)NMOS devices will be left unisolated from n-wells. E)Threshold voltages will remain unadjusted. F)All active regions outside channel areas will be p-type doped.arrow_forwardWhat are the major components of a SCADA system in a Nuclear Power Plant? Provide its functions. State how does a SCADA system in a Nuclear Power Plant works.arrow_forward
- To implement 8-to-1 line multiplexer using two 4-to-1 line multiplexer(MUX): O a. The third selctor is connected to the enable line of the first and second MUX. O b. Only the enable line of the first MUX must be connected dirictly to the enable for the second MUX. O c. The third selctor is connected to the enable line of the first MUX which is connected through inverter to the enable of the second MUX. O d. All inputs lines for the first mux must be connected to the input lines for the second mux.arrow_forwardQ1/Draw circuit for asynchronous counter (mod-13), it has negative edge, then write truth table for this circuit. Note (clear and preset are Active High)arrow_forwardSCR's gate recovery time is _____________sec, for the device which is having reverse recovery time is 37 sec and total commutation time is 65 sec.arrow_forward
- Give at least two processes (1 industrial plant and 1 Power plant) where a SCADA system is applied or used. Identify the major components of a SCADA system on those processes that you have chosen and explain each process. Show pictures for each major component involved.arrow_forwardWant to confirm with my own workarrow_forwardfind the answer in less than 30 min pls.arrow_forward
- Why is it so important to learn and understand the fundamentals of electronics in technical fields? Provide an example of how choosing the right device for an IoT system is made easier by knowing the electronics at play. arrow_forwardDon’t Copy Others work. Here is only one question. Don't say multiple question. If you are not able to provide complete question answer kindly skip the question. Sub: Optoelectronic Dept: EEEarrow_forwardAre the following statements correct or wrong? Justify your answer. (a) GTO requires very low current applied to its gate to be turn off. (b) IGBT is a voltage driven device. (c) BJT is more efficient than IGBT in high power applications. (d) Thyristors are used only for low voltage, low current applications. (e) MOSFETs are used for high frequency applications.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK ELECTRICAL WIRING RESIDENTIALElectrical EngineeringISBN:9781337516549Author:SimmonsPublisher:CENGAGE LEARNING - CONSIGNMENT
EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:9781337516549
Author:Simmons
Publisher:CENGAGE LEARNING - CONSIGNMENT