250 likes | 663 Views
Connect Four Project. Fall 2011 Anna Grimley & Josh Mandich Lab Section: F. Connect Four Game. Objectives Create Verilog Code for Connect Four Logic Synthesize Code Create Layout. Project Constraints. Game as Two Players Must use 4x4 matrix of LED’s
E N D
Connect Four Project Fall 2011 Anna Grimley & Josh Mandich Lab Section: F
Connect Four Game Objectives • Create Verilog Code for Connect Four Logic • Synthesize Code • Create Layout
Project Constraints • Game as Two Players • Must use 4x4 matrix of LED’s • Player must be able to start by using the START input • PONE always starts, PONE&PTWO can not give input simultaneously • Player must be able to start by using the START input • Other times to think about • Must not allow a player to overwrite previous selection. • Must not allow player to play out of turn • Game must stop when player wins • A 4x4
Strategy • Keep code simple • Take into consideration what is synthesizable and what is not • Start building code early and seek for help Truly elegant design incorporates top-notch functionality into a simple, uncluttered form. — David Lewis
Verilog HDL • At Start==0 sets all registers to 0. and turn=1 • Continues to check PONEWIN & PTWOWIN are zero at all steps
Verilog Code Input and Start
Verilog Code Light LED from User Input
Verilog Code Detect Winning Input
Testing Verilog Code Test Bench • Wanted to Test Player can not keep playing when LED already selected • Proved that PONEWIN would work when PONE had won
Synthesizing Schematic of elaborated Verilog Connect 4. (Code in RTL compiler)
Synthesizing Schematic of Optimized Connect 4 (Code integrated with OSU lib)
Synthesizing Schematic of Optimized Connect 4 (Code integrated with OSU lib)
Synthesizing Schematic cell view of synthesized Connect4 code in Virtuoso
Layout Initial Floor Plan Floorplan layout with power rings
Layout Cell and IO pin Placemnent
Layout Power and Ground Routing Power Routing between die I/O and standard cells
Layout Final layout view of Connect4.v in Encounter with filler added Yay! Celebrate!!!
Final Layout Using OSU_stdcells_ami05 library.
Major Take Away’s • Understand what verilog can be synthesized and what can not • Keep Verilog simple • Be patient with synthesizing and layout in encounter/virtuoso • Spending time on HDL pays off in synthesizing
Ha HaHa Not this Connect Four