ECE 272: Digital Logic Laboratory

The TekBots platform is used in ECE 272: Digital Logic Lab, an introductory digital design course. The platform enables opportunities that facilitate learning both combinational and simple sequential designs. These designs are implemented using a Lattice FPGA through schematic capture and Verilog. Some examples of projects are a remotely operated vehicle and a semi-intelligent autonomous robot.

(Prerequisites: A basic TekBot from ECE 112 or ECE 199)

The following lab material requires Adobe Acrobot Reader to view.

dLogic Board
This lab uses an Mach X02 FPGA from Lattice Semiconductor.

Hardware Used

Software Used

Important Documents

Lab Manual

Complete ECE 272 Manual


Section 1: Basic Combinational Logic and the MachXO2

This section covers the basics of using the Lattice Diamond software to program an FPGA, and connecting the Lattice Breakout Kit to the button board.

Section 2: Adders on an FPGA

Learn about number systems and adders.

Section 3: Combinational Logic (Seven Segment Driver)


Design a 7- segment display decoder.

Section 4: Driving multi-digit LED displays


  • LED State Machine
  • Verilog Examples (Verilog 2008)
  • Lab4 Template (System Verilog)
  • Use a state machine to cycle through digits fast enough to blur separate images together into a single number.

    Section 5: Voltmeter


    Design a system that will measure an analog voltage and display it using a multi-digit 7 segment display.
    ADC Module

    Section 6: Final Design Project


    Design something creative.

    Appendix: System Overview

    • Lattice Breakout Board
    • Schematics
    • Silk Screens and Pinouts
    • Parts List and Suppliers