DCLab: A Web-based System for Digital Logic Experiment Teaching

Yuhui Ding, Shanshan Li, Jinghan Liu, Xiaojun Wu

Introduction

Digital logic education is the cornerstone of computer architecture, yet it faces a persistent pedagogical divide. Traditional labs rely on physical breadboarding—a process prone to hardware damage and restricted by physical lab hours. Conversely, software simulators often force a choice between intuitive graphical design and industry-standard Hardware Description Languages (HDL). DCLab emerges as an integrated, web-based solution designed to bridge this gap, offering a "Research-to-Practice" environment that streamlines the experimental lifecycle from design to automated grading.

System Architecture

DCLab is built on a modular architecture designed to support both students and educators. The system facilitates a seamless flow where instructors assign homework and track progress, while students iterate on designs through a unified interface.

DCLab System Architecture and Workflow

The core components include:

  • Graphical Circuit Module: A drag-and-drop interface for 74-series chips and peripherals, featuring intelligent safeguards against short circuits.
  • VHDL Module: A full-featured web IDE with syntax highlighting and code completion.
  • Simulation Module: Provides instant browser-based feedback (Local Simulation) and professional-grade waveform generation via server-side ModelSim integration.
  • Management Module: A backend for instructors to post assignments, define automated grading criteria (test points), and analyze student performance metrics.

The Hybrid Learning Environment

A standout feature of DCLab is its support for dual design paths. Students can begin with graphical representations to build an intuitive understanding of logic gates and then transition to VHDL for more complex, scalable designs. This hybrid approach allows for iterative debugging; pilot data indicates that students often require multiple attempts to reach a correct solution. In a physical lab, such iteration is often time-prohibitive; in DCLab, the immediate feedback loop encourages exploration and persistence.

Dual-mode interface supporting both graphical circuit design and VHDL editing

Experimental Validation and Results

The system was evaluated through a pilot study involving 31 undergraduate students at Tsinghua University. Tasked with designing a 0-59 counter circuit, the results demonstrated the platform's efficacy:

  • Engagement: Over half the students engaged with the assignment voluntarily within the first three days.
  • Automated Assessment: The system successfully graded submissions by comparing student waveforms against instructor-defined reference points, providing granular feedback beyond simple "pass/fail" metrics.
  • Temporal Flexibility: Submission logs showed activity across all 24 hours, proving that web-based access removes the "gatekeeping" effect of limited physical lab availability.

Conclusion and Future Directions

DCLab successfully modernizes digital logic education by reducing hardware overhead and providing instructors with deep analytical insights. While the initial pilot was small, it proved the viability of automated, waveform-based grading in a remote environment. Future work will focus on scaling the platform for Massive Open Online Courses (MOOCs) and expanding the component library to support more advanced digital systems.

Summary updated

BibTeX
@inproceedings{ding2018dclab,
  author = {Yuhui Ding and Shanshan Li and Jinghan Liu and Xiaojun Wu},
  title = {{DCLab: A Web-based System for Digital Logic Experiment Teaching}},
  booktitle = {FIE},
  year = {2018},
  doi = {10.1109/fie.2018.8658917},
}
Figure