SlideShare a Scribd company logo
1 of 21
Download to read offline
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56
MODELING EXAMPLES
Mr. Anand H. D.
1
Modeling Examples
Department of Electronics & Communication Engineering
Dr. Ambedkar Institute of Technology
Bengaluru-56
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 2
Modeling Examples
SYLLABUS:
Generic Shift Register
State Machine Modeling
Interacting State Machines
Modeling a Moore FSM
Modeling a Mealy FSM
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 3
Modeling Examples
Generic Shift Register
A Generic Serial-in, Serial-out Shift Register can be modeled using for-loop with an always statement.
The number of registers is specified as a parameter so that it can be modified when Generic Shift Register is
instantiated in other design.
module Shift_Reg (D, Clock, Z)
input D, Clock;
output Z;
parameter NUM_REG = 6;
reg [1: NUM_REG] Q;
integer P;
always @ (negedge CLOCK)
begin
for (P=1; P < NUM_REG ;P=P+1)
Q[P+1] = Q[P];
Q[1] = D;
end
assign Z= Q[NUM_REG];
endmodule
Shift registers of varying sizes can be obtained by instantiating module
Shift_Reg using different parameters.
Shift_Reg SRA (Data, Clk, Za)
Shift_Reg SRA #4 (Data, Clk, Zb)
Shift_Reg SRA #10 (Data, Clk, Zc)
module Dummy
wire Data, Clk, Za, Zb, Zc)
endmodule;
1 2 3 4 5 6
Q[1] Q[2] Q[3] Q[4] Q[5] Q[6]
Q[NUM_REG]
D
Z
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 4
Modeling Examples
Generic Shift Register State Machine Modeling
State machines can usually be modeled using a case statement in a process.
The state information is stored in a signal.
The multiple branches of the case statement contain the behavior for each
state.
Here is an example of a simple multiplication algorithm represented as a
state machine.
•When RESET signal is high, the accumulator ACC and the
counter COUNT are initialized.
•When RESET goes low, multiplication starts.
•If the bit of the multiplier MPLR in position COUNT is 1', the multiplicand
MCND is added to the accumulator.
•Next, the multiplicand is left-shifted by one bit and the counter is
incremented.
•If COUNT is 16, multiplication is complete and the DONE signal is set high.
•If not, the COUNT bit of the multiplier MPLR is checked and the process
repeated.
ADD
SHIFT
INIT
Reset ==0
Count ==16
Reset ==1
Reset ACC
Initialize COUNT
If MPLR[COUNT]
is 1 then ADD
MCND to ADD
Increment COUNT
Left Shift MCND
State Diagram for Multiplier
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 5
Modeling Examples
Generic Shift Register State Machine Modeling
module Multiply (MPLR, MCND, Clock, Reset, DONE, ACC);
input [15:0] MPLR, MCND);
input Clock, Reset;
output DONE;
reg DONE;
output [31:0] ACC;
reg ACC;
parameter INIT = 0; ADD = 1; SHIFT = 2;
reg [0:1] Mpy_State;
reg [0:1] Mcnd_State;
//MPLR is multiplier and MCND is multiplicand
initial Mpy_State = INIT; //initial State is INIT
always @ (negedge Clock) begin: Process
integer COUNT;
case (Mpy_State)
reg DONE;
INIT:
if (Reset)
Mpy_State = INIT;
else
begin
ACC = 0;
COUNT = 0;
Mpy_State = ADD;
DONE= 0;
ADD
SHIFT
Reset ==0
Count ==16
Reset ==1
Reset ACC
Initialize COUNT
If MPLR[COUNT] is 1 then
ADD MCND to ADD
Increment COUNT
Left Shift MCND
State Diagram for Multiplier
INIT
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 6
Modeling Examples
Generic Shift Register State Machine Modeling
Mcnd_Temp [15:0] = MCND;
Mcnd_Temp [31:16] = 16’d0;
end
ADD:
begin
if (MPLR[COUNT])
ACC = ACC + Mcnd_Temp;
Mpy_State = SHIFT;
end
SHIFT:
begin
Mcnd_Temp = {Mcnd_Temp [30:0], 1’b0};
COUNT = COUNT + 1;
if ( COUNT = = 16)
begin
Mpy_State = INIT;
DONE=1;
end
else
Mpy_State = ADD:
end
endcase
end
endmodule
ADD
SHIFT
Reset ==0
Count ==16
Reset ==1
Reset ACC
Initialize COUNT
If MPLR[COUNT] is 1 then
ADD MCND to ADD
Increment COUNT
Left Shift MCND
State Diagram for Multiplier
INIT
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 7
Modeling Examples
Generic Shift Register State Machine Modeling
The register Mpy_State holds the state of the model
Initially, the model is in state INIT and it stays in this state as long
as RESET is true.
When RESET is false, the accumulator ACC is cleared, the counter
COUNT is reset, the multiplicand MCND is loaded into temporary
variable Mcnd_Temp, and the model advances to state ADD.
When the model is in ADD state, the multiplicand, Mcnd_Temp is
added ACC only if the bit at the COUNT position of the multipler is
a 1 and then the model advances to state SHIFT.
In SHIFT state the multiplier is shifted left once, the counter is
incremented and
if the counter value is 16, DONE is set to true and model returns to
INIT state.
At this time ACC contains the result of multiplication.
If the counter value is less than 16, the model repeats itself going
through states ADD and SHIFT until the counter value becomes 16.
State transitions occurs at every negative edge of the clock; this is
specified by timing control @(negedge Clock)
ADD
SHIFT
Reset ==0
Count ==16
Reset ==1
Reset ACC
Initialize COUNT
If MPLR[COUNT] is 1 then
ADD MCND to ADD
Increment COUNT
Left Shift MCND
State Diagram for Multiplier
INIT
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 8
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Interacting state machines can be described as separate
processes communicating via common signals.
Consider the state transition diagram shown in Figure for
two interacting processes, TX, a transmitter, and MP, a
microprocessor.
If process TX is not busy, process MP sets the data to be
transmitted on a data bus and sends a
signal, LOAD_TX, to process TX to load the data and to
begin transmitting.
A signal, TX_BUSY, is set by process TX during
transmission to indicate that it is busy and that it cannot
receive any further data from process MP
A skeleton model for these two interacting processes is
shown in next. Only the control signals and state
transitions are shown. Data manipulation code is not
described.
M1 M2
M3
(TX_Busy==1)
Load_TX==0
(TX_Busy==0)
Load_TX==1
PROCESS MP
T4 T1
T2
(Load_TX==0)
(TX_Busy==1)
TX_Busy==0
PROCESS TX
T3
Note : Expressions in Parentheses indicate control
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 9
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
module Intersecting_FSM (Clock);
input Clock;
parameter M1=0, M2=1, M3=2;
parameter T1=0, T2=1, T3=2 , T4=3;
reg [0:1] MP_State;
reg [0:1] TX_State;
reg Load_TX, TX_Busy;
Note : Expressions in Parentheses
indicate control
always @(negedge Clock) begin MP
case (MP_State)
M1:
begin
Load_TX=1;
MP_State = M2;
end
M2:
if (TX_Busy)
begin
MP_State = M3;
Load_Tx=0
end
M1 M2
M3
(TX_Busy==1)
Load_TX==0
(TX_Busy==0)
Load_TX==1
PROCESS MP
T4 T1
T2
(Load_TX==0)
(TX_Busy==1)
TX_Busy==0
PROCESS TX
T3
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 10
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Note : Expressions in Parentheses
indicate control
M3:
if (~TX_Busy)
MP_State = M1;
endcase
end
always @(negedge Clock) begin TX
case (TX_State)
T1:
if (Load_TX);
begin
TX_State = T2;
TX_Busy = 1;
end
T2:
TX_State = T3;
T3:
TX_State = T4;
T4:
begin
TX_Busy=0;
TX_State = T4;
end
endcase
end
endmodule
T4 T1
T2
(Load_TX==0)
(TX_Busy==1)
TX_Busy==0
PROCESS TX
T3
M1 M2
M3
(TX_Busy==1)
Load_TX==0
(TX_Busy==0)
Load_TX==1
PROCESS MP
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 11
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Sequence of actions for the 2 Interacting Processes
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 12
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
module Intersecting_FSM 2(Clock);
input Clock;
parameter D1=0, D2=1, D3=2;
parameter R1=0, R2=1;
reg [0:1] Div_State;
reg [0:1] RX_State;
reg New_Clock;
D1
D2D3
New_Clock==0New_Clock==1
PROCESS DIV
always @(posedge Clock) begin DIV
case (Div_State)
D1:
begin
Div_State = D2;
New_clock=0;
end
D2:
Div_State = D3;
R1
PROCESS RX
R2
Consider another example of 2 interacting processes, DIV, a clock-divider and RX, a receiver.
In this case the DIV generates a new clock, New_Clock and RX goes through its sequence of states of
synchronized to this new clock.
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 13
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
D3:
begin
New_clock = 1;
Div_State = D1;
end
endcase
end
always @(negdge New_Clock) begin RX
case (RX_State)
RX_State = R2;
RX_State = R1;
end
endcase
endmodule
Sequential block DIV generates a new clock New_Clock as it goes through its
sequence of states.
The state transitions in this process occur on the rising edge of Clock.
Sequential block RX is executed every time when falling edge of the
New_Clock occurs.
D1
D2D3
New_Clock==0New_Clock==1
PROCESS DIV
R1
PROCESS RX
R2
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 14
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Interaction between the Processes RX and DIV
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 15
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM
ST1 ST3
ST2
(A==1)
ST0
(A==0)
(A==0)
(A==0)
(A==0) (A==1)
(A==1)
Z=1
Z=1Z=0
Z=0
(A==1)
State Diagram of a Moore machine
The output of a Moore Finite State Machine (FSM) depends only on the state and not on its inputs.
This type of behavior can be modeled using an always statement with a case statement that switches on the state value,
module Moore_FSM(A, Clock, Z);
input A, Clock;
output Z;
reg Z;
parameter ST0=0, ST1=1, ST2=2, ST3=3;
reg [0:1] Moore_State;
always @ (negedge Clock)
case (Moore_State)
ST0:
begin
Z=1;
if (A)
Moore_State = ST2;
end
ST1:
begin
Z=0;
if (A)
Moore_State = ST3;
end
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 16
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM
ST1 ST3
ST2
(A==1)
ST0
(A==0)
(A==0)
(A==0)
(A==0) (A==1)
(A==1)
Z=1
Z=1Z=0
Z=0
(A==1)
State Diagram of a Moore machine
ST2:
begin
Z=0;
if (~A)
Moore_State = ST1;
else
Moore_State = ST3;
end
ST3:
begin
Z=1;
if (A)
Moore_State = ST0;
end
endcase
endmodule
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 17
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
In a Mealy Finite State Machine (FSM) , the outputs not only depend on the state of the machine but also on its inputs.
This type of FSM can be modeled in similar way as that of the Moore FSM, that is using a single always statement.
To show variety of language, a different style is used to model Mealy machine. In this case 2 always statements, one
that models synchronous aspect of FSM and other models the combinational part of FSM.
State Transition Table of a Mealy machine
module Mealy_FSM(A, Clock, Z);
input A, Clock;
output Z;
reg Z;
parameter ST0=0, ST1=1, ST2=2, ST3=3;
reg [1:2] P_State, N_State;
always @ (negedge Clock)
P_State = N_State;
always @ (P_State or A) begin: COMB_PART
case (P_State)
ST0:
if (A)
begin
Z=1;
N_State = ST3;
end
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 18
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
State Transition Table of a Mealy machine
ST1:
if (A)
begin
Z=0;
N_State = ST0;
end
else
Z=1;
else
Z=0;
ST2:
if (~A)
Z=0;
else
begin
Z=1;
N_State = ST1;
end
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 19
Modeling Examples
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
State Transition Table of a Mealy machine
ST3:
begin
Z=0;
if (~A)
N_State = ST2;
else
N_State = ST1;
end
endcase
end
endmodule
In a Mealy Finite State Machine (FSM) , it is important to put the signals in event list for
the combinational part sequential block since the outputs may be directly depend on the
inputs independent of clock.
Such a condition not occur in a Moore FSM since outputs depends only on states and state
changes occur synchronously on cock.
Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 20
Modeling Examples
Reference
J. Bhasker,” A verilog HDL Primer” BS
Publications , 2nd Edition.
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Generic Shift Register State Machine Modeling Interacting State Machines
Modeling a Moore FSM Modeling a Mealy FSM
Modeling examples

More Related Content

What's hot

Design of multiloop controller for
Design of multiloop controller forDesign of multiloop controller for
Design of multiloop controller forijsc
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agorithamlilyMalar1
 
Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...
  Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...  Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...
Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...Belinda Marchand
 
Design of multiloop controller for multivariable system using coefficient 2
Design of multiloop controller for multivariable system using coefficient 2Design of multiloop controller for multivariable system using coefficient 2
Design of multiloop controller for multivariable system using coefficient 2IAEME Publication
 
Minimization of Assignment Problems
Minimization of Assignment ProblemsMinimization of Assignment Problems
Minimization of Assignment Problemsijtsrd
 
FEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKS
FEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKSFEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKS
FEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKSieijjournal
 
Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]
Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]
Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]AI Robotics KR
 
Discretizing of linear systems with time-delay Using method of Euler’s and Tu...
Discretizing of linear systems with time-delay Using method of Euler’s and Tu...Discretizing of linear systems with time-delay Using method of Euler’s and Tu...
Discretizing of linear systems with time-delay Using method of Euler’s and Tu...IJERA Editor
 
Design of a novel controller to increase the frequency response of an aerospace
Design of a novel controller to increase the frequency response of an aerospaceDesign of a novel controller to increase the frequency response of an aerospace
Design of a novel controller to increase the frequency response of an aerospaceIAEME Publication
 
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...IJRES Journal
 
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov ModeA Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov ModeIJECEIAES
 
Approximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximationsApproximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximationsBenjamin Sach
 
Chapter 2 dynamic characteristics of instruments
Chapter 2 dynamic characteristics of instrumentsChapter 2 dynamic characteristics of instruments
Chapter 2 dynamic characteristics of instrumentstalbachew tadesse nadew
 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningAmr E. Mohamed
 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systemsAmr E. Mohamed
 

What's hot (20)

Design of multiloop controller for
Design of multiloop controller forDesign of multiloop controller for
Design of multiloop controller for
 
Jp2416601666
Jp2416601666Jp2416601666
Jp2416601666
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
 
Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...
  Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...  Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...
Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...
 
Article 1
Article 1Article 1
Article 1
 
Tuning of PID, SVFB and LQ Controllers Using Genetic Algorithms
Tuning of PID, SVFB and LQ Controllers Using Genetic AlgorithmsTuning of PID, SVFB and LQ Controllers Using Genetic Algorithms
Tuning of PID, SVFB and LQ Controllers Using Genetic Algorithms
 
Design of multiloop controller for multivariable system using coefficient 2
Design of multiloop controller for multivariable system using coefficient 2Design of multiloop controller for multivariable system using coefficient 2
Design of multiloop controller for multivariable system using coefficient 2
 
Minimization of Assignment Problems
Minimization of Assignment ProblemsMinimization of Assignment Problems
Minimization of Assignment Problems
 
FEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKS
FEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKSFEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKS
FEEDBACK LINEARIZATION AND BACKSTEPPING CONTROLLERS FOR COUPLED TANKS
 
Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]
Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]
Sensor Fusion Study - Ch3. Least Square Estimation [강소라, Stella, Hayden]
 
70
7070
70
 
solver (1)
solver (1)solver (1)
solver (1)
 
Discretizing of linear systems with time-delay Using method of Euler’s and Tu...
Discretizing of linear systems with time-delay Using method of Euler’s and Tu...Discretizing of linear systems with time-delay Using method of Euler’s and Tu...
Discretizing of linear systems with time-delay Using method of Euler’s and Tu...
 
Design of a novel controller to increase the frequency response of an aerospace
Design of a novel controller to increase the frequency response of an aerospaceDesign of a novel controller to increase the frequency response of an aerospace
Design of a novel controller to increase the frequency response of an aerospace
 
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
 
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov ModeA Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
 
Approximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximationsApproximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximations
 
Chapter 2 dynamic characteristics of instruments
Chapter 2 dynamic characteristics of instrumentsChapter 2 dynamic characteristics of instruments
Chapter 2 dynamic characteristics of instruments
 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID Tuning
 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systems
 

Similar to Modeling examples

Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd Iaetsd
 
Process Control Final Report
Process Control Final ReportProcess Control Final Report
Process Control Final ReportLogan Williamson
 
Economic Dispatch of Generated Power Using Modified Lambda-Iteration Method
Economic Dispatch of Generated Power Using Modified Lambda-Iteration MethodEconomic Dispatch of Generated Power Using Modified Lambda-Iteration Method
Economic Dispatch of Generated Power Using Modified Lambda-Iteration MethodIOSR Journals
 
Design of predictive controller for smooth set point tracking for fast dynami...
Design of predictive controller for smooth set point tracking for fast dynami...Design of predictive controller for smooth set point tracking for fast dynami...
Design of predictive controller for smooth set point tracking for fast dynami...eSAT Journals
 
Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...Zac Darcy
 
Explicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic systemExplicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic systemeSAT Journals
 
Explicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic systemExplicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic systemeSAT Publishing House
 
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Zac Darcy
 
Continuous Systems To Discrete Event Systems
Continuous Systems To Discrete Event SystemsContinuous Systems To Discrete Event Systems
Continuous Systems To Discrete Event Systemsahmad bassiouny
 
COMPARATIVE ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...
COMPARATIVE  ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...COMPARATIVE  ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...
COMPARATIVE ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...IJITCA Journal
 
Design of Multiloop Controller for Three Tank Process Using CDM Techniques
Design of Multiloop Controller for Three Tank Process Using CDM Techniques  Design of Multiloop Controller for Three Tank Process Using CDM Techniques
Design of Multiloop Controller for Three Tank Process Using CDM Techniques ijsc
 
Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...ssuser27c61e
 
Design and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save AdderDesign and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save AdderCSCJournals
 
IE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docx
IE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docxIE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docx
IE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docxsheronlewthwaite
 

Similar to Modeling examples (20)

Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pid
 
Process Control Final Report
Process Control Final ReportProcess Control Final Report
Process Control Final Report
 
Economic Dispatch of Generated Power Using Modified Lambda-Iteration Method
Economic Dispatch of Generated Power Using Modified Lambda-Iteration MethodEconomic Dispatch of Generated Power Using Modified Lambda-Iteration Method
Economic Dispatch of Generated Power Using Modified Lambda-Iteration Method
 
Pxc3899333
Pxc3899333Pxc3899333
Pxc3899333
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Design of predictive controller for smooth set point tracking for fast dynami...
Design of predictive controller for smooth set point tracking for fast dynami...Design of predictive controller for smooth set point tracking for fast dynami...
Design of predictive controller for smooth set point tracking for fast dynami...
 
Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...
 
TOCbw I&ECPDD Oct67
TOCbw I&ECPDD Oct67TOCbw I&ECPDD Oct67
TOCbw I&ECPDD Oct67
 
Explicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic systemExplicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic system
 
Explicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic systemExplicit model predictive control of fast dynamic system
Explicit model predictive control of fast dynamic system
 
Comperative Performance Analysis of PMSM Drive Using MPSO and ACO Techniques
Comperative Performance Analysis of PMSM Drive Using MPSO and ACO TechniquesComperative Performance Analysis of PMSM Drive Using MPSO and ACO Techniques
Comperative Performance Analysis of PMSM Drive Using MPSO and ACO Techniques
 
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
 
G010525868
G010525868G010525868
G010525868
 
Continuous Systems To Discrete Event Systems
Continuous Systems To Discrete Event SystemsContinuous Systems To Discrete Event Systems
Continuous Systems To Discrete Event Systems
 
COMPARATIVE ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...
COMPARATIVE  ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...COMPARATIVE  ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...
COMPARATIVE ANALYSIS OF CONVENTIONAL PID CONTROLLER AND FUZZY CONTROLLER WIT...
 
Grey wolf optimizer algorithm based real time implementation of PIDDTC and FD...
Grey wolf optimizer algorithm based real time implementation of PIDDTC and FD...Grey wolf optimizer algorithm based real time implementation of PIDDTC and FD...
Grey wolf optimizer algorithm based real time implementation of PIDDTC and FD...
 
Design of Multiloop Controller for Three Tank Process Using CDM Techniques
Design of Multiloop Controller for Three Tank Process Using CDM Techniques  Design of Multiloop Controller for Three Tank Process Using CDM Techniques
Design of Multiloop Controller for Three Tank Process Using CDM Techniques
 
Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...
 
Design and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save AdderDesign and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save Adder
 
IE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docx
IE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docxIE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docx
IE 425 Homework 10Submit on Tuesday, 12101.(20 pts) C.docx
 

More from anand hd

RMV sensors
RMV sensorsRMV sensors
RMV sensorsanand hd
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programminganand hd
 
Robot applications
Robot applicationsRobot applications
Robot applicationsanand hd
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanicsanand hd
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Visionanand hd
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligenceanand hd
 
OS file systems
OS file systemsOS file systems
OS file systemsanand hd
 
OS virtual memory
OS virtual memoryOS virtual memory
OS virtual memoryanand hd
 
OS scheduling
OS schedulingOS scheduling
OS schedulinganand hd
 
OS Memory Management
OS Memory ManagementOS Memory Management
OS Memory Managementanand hd
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDLanand hd
 
Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded Systemanand hd
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDLanand hd
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDLanand hd
 
Typical Embedded System
Typical Embedded SystemTypical Embedded System
Typical Embedded Systemanand hd
 
OS-Process Management
OS-Process ManagementOS-Process Management
OS-Process Managementanand hd
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectorsanand hd
 
Structure of Operating System
Structure of Operating System Structure of Operating System
Structure of Operating System anand hd
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision Systemanand hd
 
Os overview
Os overviewOs overview
Os overviewanand hd
 

More from anand hd (20)

RMV sensors
RMV sensorsRMV sensors
RMV sensors
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programming
 
Robot applications
Robot applicationsRobot applications
Robot applications
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanics
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Vision
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligence
 
OS file systems
OS file systemsOS file systems
OS file systems
 
OS virtual memory
OS virtual memoryOS virtual memory
OS virtual memory
 
OS scheduling
OS schedulingOS scheduling
OS scheduling
 
OS Memory Management
OS Memory ManagementOS Memory Management
OS Memory Management
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded System
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDL
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDL
 
Typical Embedded System
Typical Embedded SystemTypical Embedded System
Typical Embedded System
 
OS-Process Management
OS-Process ManagementOS-Process Management
OS-Process Management
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectors
 
Structure of Operating System
Structure of Operating System Structure of Operating System
Structure of Operating System
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision System
 
Os overview
Os overviewOs overview
Os overview
 

Recently uploaded

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 

Modeling examples

  • 1. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 MODELING EXAMPLES Mr. Anand H. D. 1 Modeling Examples Department of Electronics & Communication Engineering Dr. Ambedkar Institute of Technology Bengaluru-56
  • 2. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 2 Modeling Examples SYLLABUS: Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM
  • 3. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 3 Modeling Examples Generic Shift Register A Generic Serial-in, Serial-out Shift Register can be modeled using for-loop with an always statement. The number of registers is specified as a parameter so that it can be modified when Generic Shift Register is instantiated in other design. module Shift_Reg (D, Clock, Z) input D, Clock; output Z; parameter NUM_REG = 6; reg [1: NUM_REG] Q; integer P; always @ (negedge CLOCK) begin for (P=1; P < NUM_REG ;P=P+1) Q[P+1] = Q[P]; Q[1] = D; end assign Z= Q[NUM_REG]; endmodule Shift registers of varying sizes can be obtained by instantiating module Shift_Reg using different parameters. Shift_Reg SRA (Data, Clk, Za) Shift_Reg SRA #4 (Data, Clk, Zb) Shift_Reg SRA #10 (Data, Clk, Zc) module Dummy wire Data, Clk, Za, Zb, Zc) endmodule; 1 2 3 4 5 6 Q[1] Q[2] Q[3] Q[4] Q[5] Q[6] Q[NUM_REG] D Z
  • 4. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 4 Modeling Examples Generic Shift Register State Machine Modeling State machines can usually be modeled using a case statement in a process. The state information is stored in a signal. The multiple branches of the case statement contain the behavior for each state. Here is an example of a simple multiplication algorithm represented as a state machine. •When RESET signal is high, the accumulator ACC and the counter COUNT are initialized. •When RESET goes low, multiplication starts. •If the bit of the multiplier MPLR in position COUNT is 1', the multiplicand MCND is added to the accumulator. •Next, the multiplicand is left-shifted by one bit and the counter is incremented. •If COUNT is 16, multiplication is complete and the DONE signal is set high. •If not, the COUNT bit of the multiplier MPLR is checked and the process repeated. ADD SHIFT INIT Reset ==0 Count ==16 Reset ==1 Reset ACC Initialize COUNT If MPLR[COUNT] is 1 then ADD MCND to ADD Increment COUNT Left Shift MCND State Diagram for Multiplier
  • 5. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 5 Modeling Examples Generic Shift Register State Machine Modeling module Multiply (MPLR, MCND, Clock, Reset, DONE, ACC); input [15:0] MPLR, MCND); input Clock, Reset; output DONE; reg DONE; output [31:0] ACC; reg ACC; parameter INIT = 0; ADD = 1; SHIFT = 2; reg [0:1] Mpy_State; reg [0:1] Mcnd_State; //MPLR is multiplier and MCND is multiplicand initial Mpy_State = INIT; //initial State is INIT always @ (negedge Clock) begin: Process integer COUNT; case (Mpy_State) reg DONE; INIT: if (Reset) Mpy_State = INIT; else begin ACC = 0; COUNT = 0; Mpy_State = ADD; DONE= 0; ADD SHIFT Reset ==0 Count ==16 Reset ==1 Reset ACC Initialize COUNT If MPLR[COUNT] is 1 then ADD MCND to ADD Increment COUNT Left Shift MCND State Diagram for Multiplier INIT
  • 6. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 6 Modeling Examples Generic Shift Register State Machine Modeling Mcnd_Temp [15:0] = MCND; Mcnd_Temp [31:16] = 16’d0; end ADD: begin if (MPLR[COUNT]) ACC = ACC + Mcnd_Temp; Mpy_State = SHIFT; end SHIFT: begin Mcnd_Temp = {Mcnd_Temp [30:0], 1’b0}; COUNT = COUNT + 1; if ( COUNT = = 16) begin Mpy_State = INIT; DONE=1; end else Mpy_State = ADD: end endcase end endmodule ADD SHIFT Reset ==0 Count ==16 Reset ==1 Reset ACC Initialize COUNT If MPLR[COUNT] is 1 then ADD MCND to ADD Increment COUNT Left Shift MCND State Diagram for Multiplier INIT
  • 7. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 7 Modeling Examples Generic Shift Register State Machine Modeling The register Mpy_State holds the state of the model Initially, the model is in state INIT and it stays in this state as long as RESET is true. When RESET is false, the accumulator ACC is cleared, the counter COUNT is reset, the multiplicand MCND is loaded into temporary variable Mcnd_Temp, and the model advances to state ADD. When the model is in ADD state, the multiplicand, Mcnd_Temp is added ACC only if the bit at the COUNT position of the multipler is a 1 and then the model advances to state SHIFT. In SHIFT state the multiplier is shifted left once, the counter is incremented and if the counter value is 16, DONE is set to true and model returns to INIT state. At this time ACC contains the result of multiplication. If the counter value is less than 16, the model repeats itself going through states ADD and SHIFT until the counter value becomes 16. State transitions occurs at every negative edge of the clock; this is specified by timing control @(negedge Clock) ADD SHIFT Reset ==0 Count ==16 Reset ==1 Reset ACC Initialize COUNT If MPLR[COUNT] is 1 then ADD MCND to ADD Increment COUNT Left Shift MCND State Diagram for Multiplier INIT
  • 8. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 8 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Interacting state machines can be described as separate processes communicating via common signals. Consider the state transition diagram shown in Figure for two interacting processes, TX, a transmitter, and MP, a microprocessor. If process TX is not busy, process MP sets the data to be transmitted on a data bus and sends a signal, LOAD_TX, to process TX to load the data and to begin transmitting. A signal, TX_BUSY, is set by process TX during transmission to indicate that it is busy and that it cannot receive any further data from process MP A skeleton model for these two interacting processes is shown in next. Only the control signals and state transitions are shown. Data manipulation code is not described. M1 M2 M3 (TX_Busy==1) Load_TX==0 (TX_Busy==0) Load_TX==1 PROCESS MP T4 T1 T2 (Load_TX==0) (TX_Busy==1) TX_Busy==0 PROCESS TX T3 Note : Expressions in Parentheses indicate control
  • 9. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 9 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines module Intersecting_FSM (Clock); input Clock; parameter M1=0, M2=1, M3=2; parameter T1=0, T2=1, T3=2 , T4=3; reg [0:1] MP_State; reg [0:1] TX_State; reg Load_TX, TX_Busy; Note : Expressions in Parentheses indicate control always @(negedge Clock) begin MP case (MP_State) M1: begin Load_TX=1; MP_State = M2; end M2: if (TX_Busy) begin MP_State = M3; Load_Tx=0 end M1 M2 M3 (TX_Busy==1) Load_TX==0 (TX_Busy==0) Load_TX==1 PROCESS MP T4 T1 T2 (Load_TX==0) (TX_Busy==1) TX_Busy==0 PROCESS TX T3
  • 10. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 10 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Note : Expressions in Parentheses indicate control M3: if (~TX_Busy) MP_State = M1; endcase end always @(negedge Clock) begin TX case (TX_State) T1: if (Load_TX); begin TX_State = T2; TX_Busy = 1; end T2: TX_State = T3; T3: TX_State = T4; T4: begin TX_Busy=0; TX_State = T4; end endcase end endmodule T4 T1 T2 (Load_TX==0) (TX_Busy==1) TX_Busy==0 PROCESS TX T3 M1 M2 M3 (TX_Busy==1) Load_TX==0 (TX_Busy==0) Load_TX==1 PROCESS MP
  • 11. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 11 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Sequence of actions for the 2 Interacting Processes
  • 12. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 12 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines module Intersecting_FSM 2(Clock); input Clock; parameter D1=0, D2=1, D3=2; parameter R1=0, R2=1; reg [0:1] Div_State; reg [0:1] RX_State; reg New_Clock; D1 D2D3 New_Clock==0New_Clock==1 PROCESS DIV always @(posedge Clock) begin DIV case (Div_State) D1: begin Div_State = D2; New_clock=0; end D2: Div_State = D3; R1 PROCESS RX R2 Consider another example of 2 interacting processes, DIV, a clock-divider and RX, a receiver. In this case the DIV generates a new clock, New_Clock and RX goes through its sequence of states of synchronized to this new clock.
  • 13. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 13 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines D3: begin New_clock = 1; Div_State = D1; end endcase end always @(negdge New_Clock) begin RX case (RX_State) RX_State = R2; RX_State = R1; end endcase endmodule Sequential block DIV generates a new clock New_Clock as it goes through its sequence of states. The state transitions in this process occur on the rising edge of Clock. Sequential block RX is executed every time when falling edge of the New_Clock occurs. D1 D2D3 New_Clock==0New_Clock==1 PROCESS DIV R1 PROCESS RX R2
  • 14. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 14 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Interaction between the Processes RX and DIV
  • 15. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 15 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM ST1 ST3 ST2 (A==1) ST0 (A==0) (A==0) (A==0) (A==0) (A==1) (A==1) Z=1 Z=1Z=0 Z=0 (A==1) State Diagram of a Moore machine The output of a Moore Finite State Machine (FSM) depends only on the state and not on its inputs. This type of behavior can be modeled using an always statement with a case statement that switches on the state value, module Moore_FSM(A, Clock, Z); input A, Clock; output Z; reg Z; parameter ST0=0, ST1=1, ST2=2, ST3=3; reg [0:1] Moore_State; always @ (negedge Clock) case (Moore_State) ST0: begin Z=1; if (A) Moore_State = ST2; end ST1: begin Z=0; if (A) Moore_State = ST3; end
  • 16. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 16 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM ST1 ST3 ST2 (A==1) ST0 (A==0) (A==0) (A==0) (A==0) (A==1) (A==1) Z=1 Z=1Z=0 Z=0 (A==1) State Diagram of a Moore machine ST2: begin Z=0; if (~A) Moore_State = ST1; else Moore_State = ST3; end ST3: begin Z=1; if (A) Moore_State = ST0; end endcase endmodule
  • 17. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 17 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM In a Mealy Finite State Machine (FSM) , the outputs not only depend on the state of the machine but also on its inputs. This type of FSM can be modeled in similar way as that of the Moore FSM, that is using a single always statement. To show variety of language, a different style is used to model Mealy machine. In this case 2 always statements, one that models synchronous aspect of FSM and other models the combinational part of FSM. State Transition Table of a Mealy machine module Mealy_FSM(A, Clock, Z); input A, Clock; output Z; reg Z; parameter ST0=0, ST1=1, ST2=2, ST3=3; reg [1:2] P_State, N_State; always @ (negedge Clock) P_State = N_State; always @ (P_State or A) begin: COMB_PART case (P_State) ST0: if (A) begin Z=1; N_State = ST3; end
  • 18. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 18 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM State Transition Table of a Mealy machine ST1: if (A) begin Z=0; N_State = ST0; end else Z=1; else Z=0; ST2: if (~A) Z=0; else begin Z=1; N_State = ST1; end
  • 19. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 19 Modeling Examples Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM State Transition Table of a Mealy machine ST3: begin Z=0; if (~A) N_State = ST2; else N_State = ST1; end endcase end endmodule In a Mealy Finite State Machine (FSM) , it is important to put the signals in event list for the combinational part sequential block since the outputs may be directly depend on the inputs independent of clock. Such a condition not occur in a Moore FSM since outputs depends only on states and state changes occur synchronously on cock.
  • 20. Prepared by Prof. Anand H. D., Dept. of ECE, Dr. AIT, Bengaluru-56 20 Modeling Examples Reference J. Bhasker,” A verilog HDL Primer” BS Publications , 2nd Edition. Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM Generic Shift Register State Machine Modeling Interacting State Machines Modeling a Moore FSM Modeling a Mealy FSM