{"id":10701,"date":"2015-10-07T09:15:34","date_gmt":"2015-10-07T16:15:34","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=10701"},"modified":"2025-05-30T09:20:59","modified_gmt":"2025-05-30T16:20:59","slug":"making-a-3-bit-binary-counter-with-the-basys-3","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/making-a-3-bit-binary-counter-with-the-basys-3\/","title":{"rendered":"Making a 3-Bit Binary Counter with the Basys 3"},"content":{"rendered":"<p>Our very own Alex, known on Instructables as <a href=\"http:\/\/www.instructables.com\/member\/alexwonglik\/\" rel=\"author\">alexwonglik<\/a>, did <a href=\"http:\/\/www.instructables.com\/id\/How-to-use-Verilog-and-Basys-3-to-do-3-bit-binary-\/?ALLSTEPS\">this project<\/a> written written in Verilog to create a 3-bit binary counter. This project was initially done for an online class. The clock divider and counter modules were provided in the class Alex worked on this for.<\/p>\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" title=\"3 bit binary counter on Basys3\" width=\"735\" height=\"413\" src=\"https:\/\/www.youtube.com\/embed\/1mux5ohLbMU?start=2&#038;feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<p>This project requires a Basys 3 and the Vivado Webpack. It was originally done with the Basys 2 and Xilinx ISE, but was updated by the Instructables author.<\/p>\n<p>To write the top module to display 3-bit output from\u00a0the counter on the board&#8217;s 7-segment display, Alex began by installing the Vivado Webpack from Xilinx. \u00a0After doing that, you should create a project. Then, create the clock divider and counter module. You&#8217;ll then create the top module and modify the constraints file. At that point, synthesize and implement the design. Generate the bitstream, target the hardware, and then program the device. Presto!<\/p>\n<figure id=\"attachment_10723\" aria-describedby=\"caption-attachment-10723\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.instructables.com\/id\/How-to-use-Verilog-and-Basys-3-to-do-3-bit-binary-\/?ALLSTEPS\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-10723\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/basys-3-constraints-file-600x315.jpg\" alt=\"Adding the constraints file. \" width=\"600\" height=\"315\" data-wp-pid=\"10723\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/basys-3-constraints-file-600x315.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/basys-3-constraints-file-351x185.jpg 351w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/basys-3-constraints-file.jpg 620w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-10723\" class=\"wp-caption-text\">Adding the constraints file.<\/figcaption><\/figure>\n<p>This is a neat project and a great way to learn more about using the Basys 3 and Vivado. Comment on Instructables to let Alex know your thoughts and here to tell us about any ways you&#8217;ve used the Basys 3 lately.<\/p>\n<p>&nbsp;<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-10701 jlk' data-task='like' data-post_id='10701' data-nonce='b99b93a390' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-10701 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-10701 jlk' data-task='unlike' data-post_id='10701' data-nonce='b99b93a390' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-10701 unlc'>-3<\/span><\/a><\/div><\/div> <div class='status-10701 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Looking for a good way to learn more about using Verilog with Basys 3? Look no further. <\/p>\n","protected":false},"author":7,"featured_media":10722,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4327,35],"tags":[453,36],"ppma_author":[4464],"class_list":["post-10701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-fpga","tag-vivado","tag-xilinx"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/basys-3-bit-counter.jpg","jetpack_sharing_enabled":true,"authors":[{"term_id":4464,"user_id":7,"is_guest":0,"slug":"amber_mear","display_name":"Amber Mear","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=10701"}],"version-history":[{"count":1,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10701\/revisions"}],"predecessor-version":[{"id":31572,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10701\/revisions\/31572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/10722"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=10701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=10701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=10701"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=10701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}