Electronics System Design Lab Guide
Electronics System Design Lab Guide
ENGINEERING COLLEGE
THIRUVANNAMALAI
Regulation – 2021
NAME : ……………………………………………
YEAR : ……………………………………………
SEMESTER: ……………………………………………
REG NO:…………………………………………….
BONAFIDE CERTIFICATE
NAME……………………………………………………………..YEAR……………
SEM ………. … BRANCH……….…………………………………… REGISTER
NO…………………………………….… certified that this bonafide record of work
done by the above Student of the…….………………………… …….laboratory
during the year 2021-2022.
1.
2.
3.
4.
5.
6.
7.
8.
AIM:
APPARATUS REQUIRED:
THEORY:
The PCB designer follows few rules of thumb that can be used when laying out PCBs.
Here they are,
1. PLACING COMPONENTS:
Generally, it is best to place parts only on the topside of the board. Firstly, place all the
components in specific locations. This includes connectors, switches, LED mounting holes,
heat sinks or any other item that amounts to an external location.
Give careful thought when placing components to minimize trace lengths. Doing a good
job here will make laying the traces much easier. Arrange ICs in only one or two orientations
(up and down or right and left). Align each IC so that pin 1 is in the same place for each
orientation, usually on the top or left sides.
Position polarized parts with the positive leads, all having the same orientation. Also use
a square pad to mark the positive leads of these components. Frequently, the beginners run out
of room when routing traces. Leave 0.35 to 0.5 between ICs. For large ICs allow even more
space.
Parts not found in the component library can be made by placing a series of individual
pads and then group them together. Place one pad for each lead of the component. It is very
important to measure the pin spacing and pin diameters as accurately as possible.
[Link] COLLEGE Page 4
After placing all the components, print out a copy of the layout. Place each component
on the top of the layout. Check to ensure that you have allowed enough space for every part to
rest without touching each other.
After the components are placed, the next step is to lay the power and ground traces. A
power rail is run along the front edge of the board and a ground rail along the rear edge. From
these rails attach traces that run in between the ICs. The ground rail should be very wide,
0.100” and all the supply lines should be 0.50”. When using this configuration, the remaining
of the bottom layer is then reserved for the vertical signal traces.
When placing traces, it is always a good practice to make them as short and direct as
possible. Use vias to move signals from one layer to the other. A via is a pad-through hole.
Generally, the best strategy is to lay out a board with vertical trace on one side and horizontal
traces on the opposite side. A good trace width for low current digital and analog signals is
0.010”.
Traces that carry significant current should be wider than signal traces. The table below
gives rough guidelines of how wide should a trace be for a given amount of current.
0.010” 0.3
Amps
0.015” 0.4Amps
0.020” 0.7Amps
0.025” 1Amps
0.050” 2Amps
0.100” 4Amps
-0.150” 6Amps
After all the traces are placed, it is best to double-check the routing of every
signal to verify that nothing is missing or incorrectly wired. Do this by running through the
schematic, one wire at a time. Carefully follow the path of each trace. After each trace is
confirmed, mark the signal on the schematic with a yellow highlighter.
RESULT:
AIM:
APPARATUS REQUIRED:
AC VOLTAGE REGULATOR:
DC VOLTAGE REGULATOR:
The SCR is switched ON and OFF to regulate the output voltage in AC and DC
voltage regulator.
AC VOLTAGE REGULATOR:
If the SCR is connected to AC supply and load, the power flow can be controlled
by varying the RMS value of AC voltage applied to the load and this type of power circuit is
caused as AC voltage regulator.
Applications of AC voltage regulator are in heating on load transformers for
changing light controls, speed controls and polyphase controls, induction motors and AC
magnet controls for power transfer. Two types of power control are normally used.
DC VOLTAGE REGULATOR:
If SCRs are used to convert an AC voltage into DC voltage, then they are known as
DC voltage regulators. Eg. Battery changes for high current capacity batteries in DC voltage
control only phase control is used.
The transformer is used to step down the voltage from 230V to 24V. This is given as
input to bridge rectifier. The bridge rectifier converts incoming ac signal to unidirectional
wave. Therefore, we get full wave rectifier output at the output of bridge rectifier. This is given
as input to SCR. The gate of SCR is triggered with firing angle of α. During positive half cycle,
diode D1 and D2 conducts and during negative half cycle, diode D3 and D4 conducts.
The full wave rectified output is given to capacitive filter. The output of capacitor is dc
that it eliminates ripple contents of bridge rectifier output. The dc input is given to regulator IC.
The unregulated output must be 2V greater than regulated output voltage. The load current may
vary from 0 to rated maximum output current. The output voltage is regulated dc.
AC VOLTAGE REGULATOR:
DC VOLTAGE REGULATOR:
PIN DETAILS:
AC VOLTAGE REGULATOR:
MODEL GRAPH:
AC VOLTAGE REGULATOR:
DC VOLTAGE REGULATOR:
PROCEDURE:
AC VOLTAGE REGULATOR:
DC VOLTAGE REGULATOR:
DRB value(KΩ) Amplitude (V) TON(ms)
Thus both AC and DC voltage regulators were designed, constructed and the
output waveforms were drawn.
AIM:
APPARATUS REQUIRED:
THEORY:
Instrumentation Amplifier:
Instrumentation amplifier is generally required in any measurement system using
electrical transducers to enhance signal levels often in low voltage less than mV. Also it is
required to provide impedance matching and isolation. When the desired input rides over a
common mode signal special amplifier are needed so that difference signals get amplified to an
acceptable level while the common mode signals get attenuated.
The physical quantities can be converted into electrical quantities by using
transducer. The output of the transducer needs to be amplified to get the meter readings. This
amplification is done by using instrumentation amplifier. The output of instrumentation
amplifier drives of indicator or display system. The important features of an instrumentation
amplifier are high gain accuracy, high CMRR, high gain stability with low temperature co-
efficient, low dc offset, low output admittance.
PROCEDURE:
DESIGN:
TABULATION:
THEORETICAL CALCULATION:
R2=R1=R=10KΩ R’=
V1= V2=
VO=(R2/R1) [1+(2R/R’)] (V2-V1)
RESULT:
Thus the Instrumentation amplifier was designed and constructed using bridge type
transducer and the output is verified successfully.
AIM:
APPARATUS REQUIRED:
PROCEDURE:
1. New project and type the project name and check the top -level source type as HDL.
2. Enter the device properties and click Next.
3. Click New Source and Select the Verilog Module and then give the file name.
4. Give the Input and Output port names and click finish.
5. Type the Verilog program and save it.
6. Double click the synthesize XST and check syntax.
7. Simulate the waveform by behavioral simulation.
8. For implementation Select User constraints and give input and output port pin number.
9. Click Implement design for Translate, map and place & route.
10. Generate .bit file using programming file.
11. Implement in FPGA through parallel-JTAG cable.
12. Check the behavior of design in FPGA by giving inputs
PROGRAM:
module upcounterr(clk,clr,q);
input clk, clr;
output [3:0]q;
reg [3:0]tmp;
always@(posedgeclk or posedgeclr)
begin
if (clr)
tmp<= 4'b0000;
else
tmp<= tmp + 1'b1;
end
assign q = tmp;
endmodule
RTL SCHEMATIC:
OUTPUT WAVEFORM:
PROGRAM:
module downcounter(clk,clr,q);
input clk, clr;
output [3:0]q;
reg [3:0]tmp;
always@(posedgeclk or posedgeclr)
Begin
if (clr)
tmp<= 4'b1111;
else
tmp<= tmp - 1'b1;
end assign q = tmp;
endmodule
RTL SCHEMATIC:
OUTPUT WAVEFORM:
Thus the up and down counters has been verified and implemented.
AIM:
To design and implement Verilog HDL code for Universal Shift Register.
APPARATUS REQUIRED:
THEORY:
Universal Shift Register is a register which can be configured to load and/or retrieve the
data in any mode (either serial or parallel) by shifting it either towards right or towards left. In
other words, a combined design of unidirectional (either right- or left shift of data bits as in
case of SISO, SIPO, PISO, PIPO) and bidirectional shift register along with parallel load
provision is referred to as universal shift register.
module p20(op,in,s,MSB_in,LSB_in,clk,clr);
input [3:0]in;
input [1:0]s;
input MSB_in,
LSB_in,clk,clr;
output [3:0]op;
reg [3:0]op;
always @( posedgeclk or clr)
begin
if (clr)
op<=0;
else
case (s)
2'b00: op <= op;
2'b01: op <= {MSB_in, op[3:1]};
2'b10: op <= {op[2:0], LSB_in};
2'b11: op <= in;
endcase
end
endmodule
So S1 FUNCTIONALITY
0 0 No change for any number of clock cycles as the
outputs of the flipflops are back fed to themselves
0 1 Data bits within the register shift right for each clock
tick with the serial input bits being provided at D1 via
MUX1
1 0 Data bits within the register shift left for each clock
tick with the serial input bits being provided at Dn via
MUXn
1 1 Bits of the data word to be stored are fed in parallel
format through pin number 3 of each mux at the rising
edge of the clock
RESULT:
Thus Universal shift register was implemented and outputs are verified successfully.
AIM:
To implement finite state machine (Moore and Mealy machine) using Verilog HDL.
APPARATUS REQUIRED:
PROCEDURE:
1. New project and type the project name and check the top -level source type as HDL.
2. Enter the device properties and click next.
3. Click New Source and Select the Verilog Module and then give the file name.
4. Give the Input and Output port names and click finish.
5. Type the Verilog program and save it.
6. Double click the synthesize XST and check syntax.
7. Simulate the waveform by behavioral simulation.
8. For implementation select User constraints and give input and output port pin number.
9. Click Implement design for Translate, map and place & route.
10. Generate .bit file using programming file.
11. Implement in FPGA through parallel-JTAG cable.
12. Check the behavior of design in FPGA by giving inputs
MOORE MACHINE:
State diagram:
PROGRAM:
RTL SCHEMATIC:
OUTPUT WAVEFORM:
State diagram:
PROGRAM:
RTL SCHEMATIC:
OUTPUT WAVEFORM:
Thus the finite state machine (moore and mealy machine) were implemented.
AIM:
APPARATUS REQUIRED:
PROCEDURE:
1. New project and type the project name and check the top level source type as HDL
2. Enter the device properties and click Next
3. Click New Source and Select the Verilog Module and then give the file name
4. Give the Input and Output port names and click finish.
5. Type the Verilog program and save it
6. Double click the synthesize XST and check syntax
7. Simulate the waveform by behavioral simulation
8. For implementation Select User constraints and give input and output port pin number
9. Click Implement design for Translate, map and place & route
10. Generate .bit file using programming file
11. Implement in FPGA through parallel-JTAG cable
12. Check the behavior of design in FPGA by giving inputs
TRUTH TABLE:
--------------------------------------------------------
A B RES
---------------------------------------------------------
1000 1001 1000
----------------------------------------------------------
RTL SCHEMATIC:
TECHNOLOGICAL SCHEMATIC:
ARRAY MULTIPLIER:
module HA (sout,cout,a,b);
input a,b;
output sout,cout;
assign sout=(a^b);
assign cout=(a&b);
endmodule
module FA (sout,cout,a,b,cin); input a,b,cin;
output sout,cout;assignsout=(a^b^cin);
assign cout=((a&b)|(b&cin)|(cin&a)); endmodule
module bitmul (m,x,y); output [7:0]m;
input [3:0]x;
input [3:0]y;
assign m[0]=(x[0]&y[0]);
wire x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17; HA
HA1 (m[1],x1,(x[1]&y[0]),(x[0]&y[1]));
FA FA1 (x2,x3,(x[1]&y[1]),(x[0]&y[2]),x1);
FA FA2 (x4,x5,(x[1]&y[2]),(x[0]&y[3]),x3); HA HA2 (x6,x7,(x[1]&y[3]),x5);
HA HA3 (m[2],x15,x2,(x[2]&y[0]));
FA FA5 (x14,x16,x4,(x[2]&y[1]),x15);
FA FA4 (x13,x17,x6,(x[2]&y[2]),x16);
FA FA3 (x9,x8,x7,(x[2]&y[3]),x17);
HA HA4 (m[3],x12,x14,(x[3]&y[0]));
FA FA8 (m[4],x11,x13,(x[3]&y[1]),x12);
FA FA7 (m[5],x10,x9,(x[3]&y[2]),x11);
FA FA6 (m[6],m[7],x8,(x[3]&y[3]),x10);
endmodule
TECHNOLOGICAL SCHEMATIC:
RESULT:
Thus 4-bit multiplier (simple and array multiplier) was implemented successfully
AIM:
APPARATUS REQUIRED:
1. Xilinx ISE
2. Model sim simulator
3. FPGA Board-Spartan 3E
4. Personal computer (PC) with parallel to JTAG cable
THEORY:
An accumulator is a register in which intermediate arithmetic and logic results are stored.
Without a register like an accumulator, it would be necessary to write the result of each
calculation (addition, multiplication, shift, etc.) To main memory, perhaps only to be read right
back again for use in the next operation. Access to main memory is slower than access to a
register like the accumulator because the technology used for the large main memory is slower
(but cheaper) than that used for a register.
The canonical example for accumulator use is swimming a list of numbers. The
accumulator is initially set to zero, then each number in turn is read and added to the value in
the accumulator. Only when all numbers have been added is the result held in the accumulator
written to main memory or to another, non-accumulator, CPU register.
ALGORITHM:
1. New project and type the project name and check the top level source type as HDL
2. Enter the device properties and click Next
3. Click New Source and Select the Verilog Module and then give the file name
4. Give the Input and Output port names and click finish.
5. Type the Verilog program and save it
6. Double click the synthesize XST and check syntax
7. Simulate the waveform by behavioral simulation
8. For implementation Select User constraints and give input and output port pin number
9. Click Implement design for Translate, map and place & route
10. Generate .bit file using programming file
11. Implement in FPGA through parallel-JTAG cable
12. Check the behavior of design in FPGA by giving inputs
PROCEDURE:
1. The accumulator circuit is designed and the function is found out.
2. The Verilog module source for the circuit is written
3. It is implemented in Model Sim Simulator.
4. Signals are provided and output waveforms are viewed.
Module accu(in,acc,clk,reset);
input [7:0] in;
input clk, reset;
output [7:0] acc;
reg [7:0] acc;
always@(clk)
begin
if(reset)
acc<=acc + in;
end
endmodule
OUTPUT:
RESULT:
Thus the verilog programs for memories (Accumulator) were written, synthesized,
simulated and implemented using Xilinx tools and FPGA.
AIM:
To implement adders (Simple and Ripple carry adder) using Verilog HDL.
APPARATUS REQUIRED:
PROCEDURE:
1. New project and type the project name and check the top -level source type as HDL.
2. Enter the device properties and click Next.
3. Click New Source and Select the Verilog Module and then give the file name.
4. Give the Input and Output port names and click finish.
5. Type the Verilog program and save it.
6. Double click the synthesize XST and check syntax.
7. Simulate the waveform by behavioral simulation.
8. For implementation Select User constraints and give input and output port pin number.
9. Click Implement design for Translate, map and place & route.
10. Generate .bit file using programming file.
11. Implement in FPGA through parallel-JTAG cable.
12. Check the behavior of design in FPGA by giving inputs
Program:
module ad(a,b,sum);
input [7:0]a,b;
output [7:0]sum;
assign sum=a+b;
endmodule
Truth Table:
-----------------------------------------------------------------------
A B RES
------------------------------------------------------------------------
1111111 0000000 1111111
RTL SCHEMATIC:
OUTPUT WAVEFORM:
PROGRAM:
Main program:
module sw(a, b, c, sum, carry);
input [7:0]a;
input [7:0]b;
input c;
output [7:0] sum;
output carry;
wire [6:0]c;
gk fa0(a[0],b[0],c,sum[0],c1);
gk fa1( a[1], b[1], c1, sum [1], c2);
gk fa2(a [2], b [2], c2, sum [2], c3);
gk fa3(a [3], b [3], c3, sum [3], c4);
gk fa4(a [4], b [4], c4, sum [4], c5);
gk fa5(a [5], b [5], c5, sum [5], c6);
gk fa6(a[6],b[6],c6,sum[6],c7);
gk fa7(a [7], b [7], c7, sum [7], carry);
endmodule
RTL SCHEMATIC:
OUTPUT WAVEFORM:
Thus 8- bit parallel adders (simple adder and ripple carry adder) was designed and
implemented successfully.
AIM:
APPARATUS REQUIRED:
THEORY:
ALU’s comprise the combinational logic that implements logic operations such as AND,
OR, NOT gate and arithmetic operations, such as Adder, Subtractor. Functionally, the
operation of typical ALU is represented as shown in diagram below,
PROGRAM:
4 BIT ALU:
TRUTH TABLE:
RTL SCHEMATIC:
OUTPUT WAVE:
Thus 4-bit ALU was implemented and outputs are verified successfully.