Giter Club home page Giter Club logo

verilog-digital-clock-with-calendar's Introduction

Verilog Digital Clock with Calendar

Digital Clock with Calendar using Verilog implemented on DE2-115 FPGA board.

IMG_6327.mov

1. Spec

Assignments

Thiết kế mạch đồng hồ thế kỷ

Hiển thị ngày tháng năm, giờ phút giây trên các led 7 thanh của DE2 Cho phép sử dụng các nút bấm để đặt ngày/tháng/năm/giờ/phút/giây Các module:

  1. Tạo xung 1s
  2. Đếm 60s
  3. Đếm 60min
  4. Đếm 24h
  5. Đếm ngày
  6. Đếm tháng
  7. Đếm năm
  8. Giải mã 7 thanh
  9. Reset ngày
  10. Reset tháng
  11. Xác định số ngày trong tháng

B1: Xác định SPEC đồng hồ thế kỷ B2: Xác định kiến trúc (kết nối các module trên) B3: Xây dựng code từng module B4: Xây dựng testbench cho đồng hồ B5: Pin Assignment & nạp xuống FPGA

1.1. Thiết kế các module

1.1.1. Các module cho đồng hồ thế kỷ

1.1.1.1. timer1hz

Module timer1hz tạo xung mỗi 1 giây. Cơ chế: tạo biến đếm count và đếm dựa theo tần số clock đầu vào.

input(s):

  • clk_100MHz: 100 MHz clock
  • reset

output(s):

  • clk_1Hz: 1 Hz clock

1.1.1.1. clock

Module clock nhận xung 1Hz từ module timer1hz tự động tăng giá trị giây (sec), phút (min), giờ (hour). Ngoài ra còn có thể điều khiển tăng giá trị giờ, phút, giây bằng các tín hiệu inc_hour, inc_min, inc_sec tương ứng. Mỗi khi cuối ngày (23:59:59), tín hiệu end_of_day sẽ được kích hoạt giúp module calendar tính toán lịch.

input(s):

  • clk_100MHz: 100 MHz clock
  • reset
  • inc_hour, inc_min, inc_sec: các tín hiệu chủ động kích hoạt để tăng giá trị giờ, phút, giây.

output(s):

  • tick_1Hz: 1 Hz clock

1.1.2. Các module hỗ trợ

verilog-digital-clock-with-calendar's People

Contributors

qyt0109 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.