Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I...

10

Transcript of Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I...

Page 1: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

������������������������������������������������������������������������������������������������ �������������������������

���������������������������������������������� �������������������������������

Page 2: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

����������� ��#������������%����!� ��$��������� � ������������� ������ �������� ������� ����������������� � �!�����,�%�%�������������������� ������� ���$�� ������-%������������������!�� �� �(���� �) ��� �(���)%������������ � �!��������10*���$� ���������� ���������������1/���!���������.�,�%�%����� ����-%����� ��������������� ��� ���������������������"� ���%������" ����$������� ��*�������� �������,��-������������������ �����������*�������� �������,��-�������� ���������!��������������������� ��*�������� ����#���������%���&2'����� ����� ������������������ ������ �#�!����%������� �10*���� ������� �����������������%����� ��� ����10*�������!����%����!� ��$����� ���� ���10*����!���$�������������������������11*����,��������������� ��#����-%�������������������� ��������������������� �!����� ��!���������� ���� � ���������� ��#����%����11��������������� ���%�����������" ������ ������� �����������!������� ��� ���������!����� ��#������� ���� ��#�������%�������������������������� �� ������%������� ������������ �� �������� � ���� ����+ �������������������������� ��������� ������� ��� ������������$�!����� �� ��� ����������������������11���������������������$� ���������� ����������� �����������#����� ����%

������������������ ������������� ������������������!�

������������������� ����������������������������� ������������������������������� ����������� �������������"������� ������� ������������������ ����� ����� ������������������������%����"

�������������������������������(����)�&�"�"�)%���������'���������������������� �������������������� ���������������� ���� �� ���������������������������������&�"�"��������#)$��������'"������� ����������������� ����������(�&��� ����'"

������� �����������������������������������������&��������������������������������������'"�������� ����������������������%���������������������������"�

Page 3: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

��������������������������������(%��%&��������������������������������� ����������� ������������������������������������ ������������*���������������������� �����������������!���" ���'%��������������������������)�������������� ����������������������������������������������������������������� ����������������������# ������������������ $ ��

��������� ����������������������������� ���� ������������������������������������������ �������������������� ����� ���������� ��� ���������

�������������������������������������� ����������������� � ���������� ���$����� ������������������������������ ���� ���������� ��������!��������������������������� ������� ����$������ �������������� � ������"������������� �������$���������������������� ������������������������� ���������������&�$�$�����������������#�����������������������������'$������ ������!����������������������!���������������������������������������$������������ � �������������� ������ ���������������������������������������� � ��������������������������������� ��������� �)%��%(������������$

Page 4: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

� ���������������������������� ������������ ���������������������������������� ��� � ����������"������# �����������������������$���� �!%����������������������������������������� ��� � ������������������������� ������� ������� ������������ ������ ������������������������ ����������������� ��������������������� ��

������������������������������������������������� � �����������������������������������������������

����"�����"��!��%������ ���0+ �+/������������������������������� ����������!� ������������!����� ��������� ���� �!� �#� �� ���������������(������� �����������������#����#�������������������� ����� �������������������!����������� �����'��! �#� ����������������� �� �����!���� �����%#����� ����� -����������.(���� �� �� � ��������������������� ���������� ���%������, %�!���!��������� �)����* �����% ���������&���������������������������� ����� ������! ����������'�� ������(����� ���� �������#����������������� ���������� �"�� ������� �"������������(� ���� �����������'� ����! �! ������������������� �� ������������ ����������� ��������� �����(��#����������� ��-)�� ����)���.��������#������(���#�����$������ ���������������� #���� ������� ��(

Page 5: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

�������������������#�"������ ��"���������������������� ��� ��� ����� ����� ����������" ���� ������ ����������$������������� ��� �������������%��������� �����"� �������� ����� �� ������� �� �����&�$�$� ������������ ��������� ����� '$�����"������������������������� ��� �������������$�������������������� ���#��� �������������� ������� ��� ��� ��������������� ����$��������������"������������� ��"����������������#������ ����������������������!������������������������������ �����$

��������������������������� �����������������������"��������!������������������� ��������� ������������ ��������������������������������������� ������������������������������!

������������ ����� �������������� ������������������ �����������!���� ��������������� ��������������������# ��� �������������� �����������������!

��

Page 6: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

��������� �!�� ������������������������� ��� ������������������������������������������������������������ ����������������������� ���������������!$! ���� ������������������������ ��������������������������������������������� ��������������������������������� ���� ��������������������������� ������������� ����������������������������������������������������� �������������������������������������������������������

��������������� �������!��!������������������������������ �������������������������������"� � ������������������# ����������������������������� ���� ����������� ����������������������������������������� ������������������������������ ���������������� �������������������������������������������������� ����������������������������������������������������� ���������������� ����

��

�������������������� ���������������� �������� �������������������������������������� ��������� ��������� �����������!������������ ������������������������������������"���������������������������� ��������������������������������������������������������������������������������

��

Page 7: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

����������������������������������%������������������������������������������������������$�� �������������%�����������������������������������������)��������%��������������������������� %��$�� ����� �������������������������#�����"������������������ ����%�����������������'��������(� ��������� ����������%�������������!���������������������)���������� ������#����������*�%�%��������+%�

����������$�#������������!�#������&��& ���������������� ��������������#�#�����������%

��

�������������������!������������������������������� ��!����%������������&���)($������������������#��������������������������������������#����������������������������������������� ���� ��"������������������� ����%����($��$'������������)$��$'���&#

��

Page 8: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

������ ������������� ����� �������������� ���"��������������������������� ����!������ � $ �('#����������������������������������������� $ �('#���������������������������������������� $ �&)#� #&)����� ������������������� ������('#������� �������� $ �('#�������� � ������ $ �('#�������� ����������

��

�������������������������������������������������� ����������������������������������������������������������������������������������������������������� ������������� ����� �� ���������������������������������������������������������������������������� !������������������������������������ ����������������� !�������������� �������������������� �������������

��

Page 9: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

����������������������������������������������������������������� ������������������������������������������������������������

��

���������������������������������������������� ����������������������������������������� �������������� ������������������������������������������������������������������ ��� ���� ��������������� �������������������������������������������������������������������������������������������������������������� ������������������������������������������������������������������������������������������������������������������������������� �� �����

��

Page 10: Lecture 4- Verilog HDL-Part 2 - Imperial College London · 2019-10-14 · Lecture 4 Slide 2 E2.I Digital Electronics PYKC 150ct2019 Imperial College London Lecture 4 Verilog HDL -

��