{"id":1371,"date":"2023-05-03T00:12:14","date_gmt":"2023-05-02T17:12:14","guid":{"rendered":"https:\/\/bigdolphin.com.vn\/?p=1371"},"modified":"2024-03-26T15:24:19","modified_gmt":"2024-03-26T08:24:19","slug":"a-module-of-i2c-master-for-fpga-cpld-in-verilog-hdl","status":"publish","type":"post","link":"https:\/\/bigdolphin.com.vn\/?p=1371","title":{"rendered":"A Module of I2C Master for FPGA\/CPLD in Verilog HDL"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>1. Finite-State Machine<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1997\" height=\"747\" src=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/fsm_master.png\" alt=\"Finite-State Machine of Master\" class=\"wp-image-1377\" srcset=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/fsm_master.png 1997w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/fsm_master-300x112.png 300w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/fsm_master-1024x383.png 1024w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/fsm_master-768x287.png 768w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/fsm_master-1536x575.png 1536w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/fsm_master-1920x718.png 1920w\" sizes=\"(max-width: 1997px) 100vw, 1997px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. RTL Structure<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1773\" height=\"501\" src=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/rtl_master.png\" alt=\"RTL of Master\" class=\"wp-image-1379\" srcset=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/rtl_master.png 1773w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/rtl_master-300x85.png 300w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/rtl_master-1024x289.png 1024w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/rtl_master-768x217.png 768w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/rtl_master-1536x434.png 1536w\" sizes=\"(max-width: 1773px) 100vw, 1773px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. Experimental System<\/strong><\/h2>\n\n\n\n<p>An experimental system is setup using a DE10-nano development kit and a 4-channel oscilloscope.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-1024x576.png\" alt=\"\" class=\"wp-image-1381\" srcset=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-1024x576.png 1024w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-300x169.png 300w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-768x432.png 768w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-1536x864.png 1536w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image.png 1721w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">a. Waveform of writing operation<\/h3>\n\n\n\n<p>The Master module writes 3 bytes of data to an I2C slave module (address 0x70).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"480\" src=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-1.png\" alt=\"\" class=\"wp-image-1383\" srcset=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-1.png 800w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-1-300x180.png 300w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-1-768x461.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">b. Waveform of reading operation<\/h3>\n\n\n\n<p>The Master module reads 3 bytes of data from an I2C slave module (address 0x70).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"480\" src=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-2.png\" alt=\"\" class=\"wp-image-1384\" srcset=\"https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-2.png 800w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-2-300x180.png 300w, https:\/\/bigdolphin.com.vn\/wp-content\/uploads\/2023\/05\/image-2-768x461.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This post shows an implementation of an I2C Master module for FPGA\/CPLD. The module is made in Verilog HDL and verified on a DE10-nano kit.<\/p>\n","protected":false},"author":2,"featured_media":1372,"comment_status":"open","ping_status":"open","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[10],"tags":[72,6,7,71,5],"_links":{"self":[{"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=\/wp\/v2\/posts\/1371"}],"collection":[{"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1371"}],"version-history":[{"count":10,"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=\/wp\/v2\/posts\/1371\/revisions"}],"predecessor-version":[{"id":1387,"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=\/wp\/v2\/posts\/1371\/revisions\/1387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=\/wp\/v2\/media\/1372"}],"wp:attachment":[{"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bigdolphin.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}