Giter VIP home page Giter VIP logo

fpga_crossword's Introduction

FPGA Crossword

Final project for ECE 385 - Digital Systems Laboratory
Created by Wesley Wu and Karthik Prasad

High-Level Overview

This project is a fully functional crossword game with 5 levels, each 5x5 letters, with “across” (horizontal) and “down” (vertical) clues which corresponded to each cell displayed based on which cell was currently being highlighted. In addition, we implemented a “check” button which allows the user to check which of the letters they have inputted into the puzzle thus far are correct as well as a “reveal” button which would place all the letters in their respective cells on the screen. Another element we included was the a HEX display stopwatch which would output its time on-screen upon the user solving the puzzle.

Hardware

We ran this game on the MAX10 DE10-Lite FPGA board from Intel by implementing a NIOS-II processor and using peripherals as well as an IP core for the text diaplay. We also implemented hardware highlighting logic to act upon the rising edge of a keypress and a simple state machine which told the VGA controller which screen (menu or crossword) to display based on completeness of the puzzle. We also implemented a hardware timer which would display the time elapsed since opening the puzzle on HEX displays. We wired both the state machine and the hardware timer to peripherals on the NIOS-II processor so that we could read and change the internal signals from software.

Additionally, we wrote a Python script to convert the puzzle clues to binary (ASCII) and place those into the on-chip memory using a memory initialization file.

Software

We used C to write most of our game logic. In our C code, we first read the clues from the pre-initialized memory using pointer arithmetic. After reading the clues, we placed the letters corresponding to the clues in an array indicating the correct cell it belongs in. Then, inside the game loop, we counted the number of correct characters inputted so far and stopped the game and displayed the stopwatch on-screen once the user solved the puzzle (or revealed all of the clues).

Demo Video

Link to demo video here!

fpga_crossword's People

Contributors

wesleywu20 avatar

Watchers

James Cloos avatar  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.