SlideShare a Scribd company logo
Generalized Isomorphism
between Synchronous Circuits
and State Machines
Shunji Nishimura
July 1, 2015 ITC-CSCC
2
Motivation
Category theory
Great successes in software science
ex. programming semantics
(modeling)
might be in hardware
object
object
object
3
Known isomorphism
f
D-FlipFlop synchronous circuit and state machine
Low LowHigh
D-FF
f
next
equaldiscrete
sampling
circuit
SM
4
(part of) Our isomorphism
D-Latch synchronous circuit and state machine
a0 a1 a2 a3
a0 a1 a2 a3
f
D-Latch
f
next
equal
circuit
SM
time structure
transformation
Agenda
(0) Modeling on category theory
(1) Evaluation operator
(2) Comprehensive Latches
(3) Transformation of time structure
(1)
(2)
(3)
6
Category:
signal as:
Modeling on category [1/3]
object
object
object
signal
value
signal
value
signal
value
time as:
time
point
time
point
time
point
7
A B
SS := functor A × S → B × SA circuit:
An evaluation pattern := functor time T → signal A
Modeling on category [2/3]
category A
functor
category B
Functor:
mapping between categories
Natural transformation:
mapping between functors
8
Modeling on category [3/3]
category
Natural
transformation
category
functor F
functor G
will be used for our transformation of time structure.
(Agenda)
(0) Modeling on category theory
(1) Evaluation operator
(2) Comprehensive Latches
(3) Transformation of time structure
(1)
(2)
(3)
10
Evaluation operator [1/3]
A
A×S
T B
B×S
a
f
a ▷ f
f
A B
SS
time
evaluation
result
Define operator ▷ which determines evaluation results.
evaluation
pattern
circuit
= a ▷ fviz.
a
Time (= category) for evaluation
Encountering problem
Intend to : (transit t0 → t1 → t2),
but in fact : (exists t0 → t2).
11
: non-deterministic branching
t0 t1 t2
t0 t1 t2
compositon
Evaluation operator [2/3]
: joining together
Consider time structure τ of time T as:
τ ⊂ { morphisms of T } a ▷ f
τ
12
τ τ
t0 t1
f s0
fs0
= f
next
= f
state machine
combinational
circuit
Evaluation operator [3/3]
Similar to the state machine evaluation
 To imitate logic simulation, iterative calculation
is described by identity morphism.
(Agenda)
(0) Modeling on category theory
(1) Evaluation operator
(2) Comprehensive Latches
(3) Transformation of time structure
(1)
(2)
(3)
14
?
Comprehensive Latches [1/2]
order reversal of
previous/current
signal
rejected accepted
aim to build the most general latches/FFs
rejected accepted
τ
redundant
(premised on )
corresponding to
enable state of
D-Latchs
corresponding to
disable state of
D-Latchs
15
C
A
A A
A
A
1 2 n
Comprehensive Latch : (C×A)×An → A×An
= C×An+1 → An+1
input state output state
Comprehensive Latches [2/2]
Definiton: serial connection of
(function to) the previous units
(Agenda)
(0) Modeling on category theory
(1) Evaluation operator
(2) Comprehensive Latches
(3) Transformation of time structure
(1)
(2)
(3)
17
Transformation of time structure [1/2]
C×Tn+1
T T
(clock) ck
ρ
id(identity)
C×T
Tn+1
ck×id ▷ ρ
τ
comprehensive
latch
τ: time structure
ρ:
T T
(Natural
transformation)
id
Renewed time structure is defined as:
18
t0
ck
τ
(Low enable)
=
ρ=
=
=
ex.
τ
=
t1 t2 t3 t4 t5 t6
t0 t0 t0 t3 t4 t4 t4
t0 t1 t2 t3 t4 t5 t6
D-Latch
throughkeep
=( id )
∴
Transformation of time structure [2/2]
ck×id ▷ρ
natural transformation
19
Theorem: isomorphism [1/2]
ρ synchronous circuit and state machine
(ρ: comprehensive latch)
f
f
next
equaltime structure
transformation
ρ
a0 a1 a2
τ
=
=
ck
pattern =
a0 a1 a2
=
=pattern
along
with
along
with
The two functors in the center
are the same.
20
C×A×Sn+1
T B
B×Sn+1
clock ck
fρ
a
A
A×S
B×S
=
evaluation
pattern
circuit f
f
ρ
C
A
S
Sn
B
S
Sn
ck×a ▷ fρ
τ
a ▷ fa
comprehensive latch
τ: time structure
ρ:
Theorem: isomorphism [2/2]
C×A
21
Conclusion
Generalized theory was acquired
using category theory.
A common modeling of circuits and
state machines is presented.
A generalized concept of latches/FFs
is also presented.
A state machine corresponding to a D-
Latch synchronous circuit is available.

More Related Content

PPTX
Week 15 state space rep may 25 2016 final
PDF
Modern Control System (BE)
PDF
Lec 08 - DESIGN PROCEDURE
PPSX
linear algebra in control systems
PDF
Quiz
PDF
The Controller Design For Linear System: A State Space Approach
PDF
State space analysis
PPT
Parallel algorithms
Week 15 state space rep may 25 2016 final
Modern Control System (BE)
Lec 08 - DESIGN PROCEDURE
linear algebra in control systems
Quiz
The Controller Design For Linear System: A State Space Approach
State space analysis
Parallel algorithms

What's hot (20)

PPT
State space modeling_introduction
PPT
State space analysis, eign values and eign vectors
PPTX
Matlab: Discrete Linear Systems
PPTX
Discrete state space model 9th &10th lecture
PPTX
Block diagram
DOCX
Parallel searching
PPT
Control chap3
PPTX
Signal Flow Graph Introduction
PPSX
Dsp i with_audio
PPTX
Block diagrams and signal flow graphs
PPTX
PPT
130070119095_2151908
PPTX
Block diagram representation 3
PPTX
block diagram representation of control systems
PDF
Control systems
PPTX
Parallel sorting algorithm
PPTX
State equations for physical systems
PPTX
Lecture 8-9 block-diagram_representation_of_control_systems
PPT
Block diagram &_overall_transferfunction_of_a_multiloop_control_system
State space modeling_introduction
State space analysis, eign values and eign vectors
Matlab: Discrete Linear Systems
Discrete state space model 9th &10th lecture
Block diagram
Parallel searching
Control chap3
Signal Flow Graph Introduction
Dsp i with_audio
Block diagrams and signal flow graphs
130070119095_2151908
Block diagram representation 3
block diagram representation of control systems
Control systems
Parallel sorting algorithm
State equations for physical systems
Lecture 8-9 block-diagram_representation_of_control_systems
Block diagram &_overall_transferfunction_of_a_multiloop_control_system
Ad

Similar to Generalized Isomorphism between Synchronous Circuits and State Machines (20)

PPT
5_2019_01_12!09_25_57_AM.ppt
PDF
Chapter 1_Lect_3 System Modeling_144875f87dacff21abd64f918872013c Copy.pdf
PPTX
How to Develop Your Own Simulators for Discrete-Event Systems
PPTX
Transfer Functions of Electrical Networks
PPTX
An introduction to impluse response.pptx
PDF
Combinational logic circuit by umakant bhaskar gohatre
PDF
Feedback control of_dynamic_systems
PDF
SLAM of Multi-Robot System Considering Its Network Topology
PDF
Design of a novel controller to increase the frequency response of an aerospace
PDF
Article 1
PPTX
Control system with matlab Time response analysis, Frequency response analysi...
PPTX
fcs-0202.pptx
PDF
Block diagrams
PDF
Ch.02 modeling in frequency domain
PDF
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
PPTX
Stability Analysis of Discrete System
PDF
Control system introduction for different application
PDF
MUMS: Agent-based Modeling Workshop - Practical Bayesian Optimization for Age...
PDF
Clase 02-modelado-de-sistemas-de-control (1)
PDF
Dynamic_Linear_Systems_Lecture2-Linear.pdf
5_2019_01_12!09_25_57_AM.ppt
Chapter 1_Lect_3 System Modeling_144875f87dacff21abd64f918872013c Copy.pdf
How to Develop Your Own Simulators for Discrete-Event Systems
Transfer Functions of Electrical Networks
An introduction to impluse response.pptx
Combinational logic circuit by umakant bhaskar gohatre
Feedback control of_dynamic_systems
SLAM of Multi-Robot System Considering Its Network Topology
Design of a novel controller to increase the frequency response of an aerospace
Article 1
Control system with matlab Time response analysis, Frequency response analysi...
fcs-0202.pptx
Block diagrams
Ch.02 modeling in frequency domain
Circuit Network Analysis - [Chapter5] Transfer function, frequency response, ...
Stability Analysis of Discrete System
Control system introduction for different application
MUMS: Agent-based Modeling Workshop - Practical Bayesian Optimization for Age...
Clase 02-modelado-de-sistemas-de-control (1)
Dynamic_Linear_Systems_Lecture2-Linear.pdf
Ad

More from Shunji Nishimura (16)

PPTX
Functional Type Expressions of Sequential Circuits with the Notion of Referri...
PPTX
Approximate-At-Most-k Encoding of SAT for Soft Constraints
PPTX
Classification of Sequential Circuits as Causal Functions
PPTX
Typing during Lectures as an Alternative for Blackboard Writing
PPTX
LINE Messaging APIを用いた授業中のクイズ形式問題演習
PDF
Stateless Circuit Model toward a Theorem-proving Hardware Description Language
PPTX
Broad-sense Synchronous Circuits on Partially Ordered Time
PPTX
同期回路の機能的定義による同期概念の形式化
PPTX
Theorem-proving Verification of Multi-clock Synchronous Circuits on Multimoda...
PPTX
多重様相論理による遅延依存非同期回路の形式検証体系
PPTX
定理証明言語によるハードウェア検証
PPTX
タイミング制約を含んだ回路記述方式とその意味論
PPTX
様相論理によるマルチクロック同期回路の形式検証体系
PDF
同期回路-ステート・マシン対応の一般化
PDF
関数型言語と定理証明
PDF
Agdaで回路設計(をしたい)
Functional Type Expressions of Sequential Circuits with the Notion of Referri...
Approximate-At-Most-k Encoding of SAT for Soft Constraints
Classification of Sequential Circuits as Causal Functions
Typing during Lectures as an Alternative for Blackboard Writing
LINE Messaging APIを用いた授業中のクイズ形式問題演習
Stateless Circuit Model toward a Theorem-proving Hardware Description Language
Broad-sense Synchronous Circuits on Partially Ordered Time
同期回路の機能的定義による同期概念の形式化
Theorem-proving Verification of Multi-clock Synchronous Circuits on Multimoda...
多重様相論理による遅延依存非同期回路の形式検証体系
定理証明言語によるハードウェア検証
タイミング制約を含んだ回路記述方式とその意味論
様相論理によるマルチクロック同期回路の形式検証体系
同期回路-ステート・マシン対応の一般化
関数型言語と定理証明
Agdaで回路設計(をしたい)

Recently uploaded (20)

PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
composite construction of structures.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
Model Code of Practice - Construction Work - 21102022 .pdf
bas. eng. economics group 4 presentation 1.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Internet of Things (IOT) - A guide to understanding
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
composite construction of structures.pdf
additive manufacturing of ss316l using mig welding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
R24 SURVEYING LAB MANUAL for civil enggi
Embodied AI: Ushering in the Next Era of Intelligent Systems

Generalized Isomorphism between Synchronous Circuits and State Machines

  • 1. Generalized Isomorphism between Synchronous Circuits and State Machines Shunji Nishimura July 1, 2015 ITC-CSCC
  • 2. 2 Motivation Category theory Great successes in software science ex. programming semantics (modeling) might be in hardware object object object
  • 3. 3 Known isomorphism f D-FlipFlop synchronous circuit and state machine Low LowHigh D-FF f next equaldiscrete sampling circuit SM
  • 4. 4 (part of) Our isomorphism D-Latch synchronous circuit and state machine a0 a1 a2 a3 a0 a1 a2 a3 f D-Latch f next equal circuit SM time structure transformation
  • 5. Agenda (0) Modeling on category theory (1) Evaluation operator (2) Comprehensive Latches (3) Transformation of time structure (1) (2) (3)
  • 6. 6 Category: signal as: Modeling on category [1/3] object object object signal value signal value signal value time as: time point time point time point
  • 7. 7 A B SS := functor A × S → B × SA circuit: An evaluation pattern := functor time T → signal A Modeling on category [2/3] category A functor category B Functor: mapping between categories
  • 8. Natural transformation: mapping between functors 8 Modeling on category [3/3] category Natural transformation category functor F functor G will be used for our transformation of time structure.
  • 9. (Agenda) (0) Modeling on category theory (1) Evaluation operator (2) Comprehensive Latches (3) Transformation of time structure (1) (2) (3)
  • 10. 10 Evaluation operator [1/3] A A×S T B B×S a f a ▷ f f A B SS time evaluation result Define operator ▷ which determines evaluation results. evaluation pattern circuit = a ▷ fviz. a
  • 11. Time (= category) for evaluation Encountering problem Intend to : (transit t0 → t1 → t2), but in fact : (exists t0 → t2). 11 : non-deterministic branching t0 t1 t2 t0 t1 t2 compositon Evaluation operator [2/3] : joining together Consider time structure τ of time T as: τ ⊂ { morphisms of T } a ▷ f τ
  • 12. 12 τ τ t0 t1 f s0 fs0 = f next = f state machine combinational circuit Evaluation operator [3/3] Similar to the state machine evaluation  To imitate logic simulation, iterative calculation is described by identity morphism.
  • 13. (Agenda) (0) Modeling on category theory (1) Evaluation operator (2) Comprehensive Latches (3) Transformation of time structure (1) (2) (3)
  • 14. 14 ? Comprehensive Latches [1/2] order reversal of previous/current signal rejected accepted aim to build the most general latches/FFs rejected accepted τ redundant (premised on ) corresponding to enable state of D-Latchs corresponding to disable state of D-Latchs
  • 15. 15 C A A A A A 1 2 n Comprehensive Latch : (C×A)×An → A×An = C×An+1 → An+1 input state output state Comprehensive Latches [2/2] Definiton: serial connection of (function to) the previous units
  • 16. (Agenda) (0) Modeling on category theory (1) Evaluation operator (2) Comprehensive Latches (3) Transformation of time structure (1) (2) (3)
  • 17. 17 Transformation of time structure [1/2] C×Tn+1 T T (clock) ck ρ id(identity) C×T Tn+1 ck×id ▷ ρ τ comprehensive latch τ: time structure ρ: T T (Natural transformation) id Renewed time structure is defined as:
  • 18. 18 t0 ck τ (Low enable) = ρ= = = ex. τ = t1 t2 t3 t4 t5 t6 t0 t0 t0 t3 t4 t4 t4 t0 t1 t2 t3 t4 t5 t6 D-Latch throughkeep =( id ) ∴ Transformation of time structure [2/2] ck×id ▷ρ natural transformation
  • 19. 19 Theorem: isomorphism [1/2] ρ synchronous circuit and state machine (ρ: comprehensive latch) f f next equaltime structure transformation ρ a0 a1 a2 τ = = ck pattern = a0 a1 a2 = =pattern along with along with
  • 20. The two functors in the center are the same. 20 C×A×Sn+1 T B B×Sn+1 clock ck fρ a A A×S B×S = evaluation pattern circuit f f ρ C A S Sn B S Sn ck×a ▷ fρ τ a ▷ fa comprehensive latch τ: time structure ρ: Theorem: isomorphism [2/2] C×A
  • 21. 21 Conclusion Generalized theory was acquired using category theory. A common modeling of circuits and state machines is presented. A generalized concept of latches/FFs is also presented. A state machine corresponding to a D- Latch synchronous circuit is available.