Creating a Digital Optometrist Perimeter Control Circuit
Figure 1: Final Layout of perimeter block diagram.
Project Overview
For this project, I was paired with another student from EE330 to create
a digital perimeter controller using Verilog and Cadence Virtuoso.
The project requirements and the controller's behavior were defined in the final project document
as follows:
This project will be to design a 64-pixel perimeter. The design is to be completed through post
layout simulation. At each pixel location, there will be an LED. The perimeter randomly and
sequentially generates a light signal at each of the pixel locations. The time between generating
the test signals should be between 7 sec and 20 sec and vary enough so the patient cannot
predict when the next signal will be applied. The patient is asked to click on an SPST momentary
switch every time a light is observed. A successful detection is to be recorded if the SPST is
clicked within 5 seconds of applying the stimulus. At the conclusion of the test, the perimeter
should have in memory the number of correct detections. Occasionally, a patient may click if
there is no signal present, and this will be defined as a false click. The number of false clicks
should also be recorded. After the test is over, the number of successful clicks and the number of
false clicks should be displayed on a 4-digit 7-segment display. You may specify any
commercial 4-digit 7-segment display. The technician conducting the test will have two switches
to control the perimeter. One is a toggle switch which should be used as an input to determine
whether the displayed output is the number of successful clicks or the number of false clicks.
The other is an SPST push-button switch that will start another test. This readout should remain
active after the test is completed until another test is initiated.
— Final Projects Document EE330
In addition to the digital circuit, there were several smaller analog portions that were required to ensure
this circuit's functionality; for example, we created a 16 MHz ring oscillator and a Schmitt trigger to
allow for more
straightforward debouncing of the push button's input signal.
My Role
I wrote a large portion of the core functionality of this module, including the pseudo-random number generator,
the state machine, among others. I also created schematics, layouts, and testbenches for the various analog
components like
the LED drive transistors, the 16 MHz ring oscillator, and the Schmitt trigger used for providing hysteresis
for the button input. When it came to creating the final layout, my partner and I were logged into the same
machine,
so we worked on the layout in Cadence simultaneously.
Skills or Knowledge Gained
Throughout the course of this project, I was able to practice and learn several critical skills related to
integrated IC design:
I learned how to synthesize and perform place and route digital circuits using Cadence Genus and
Innovus.
I learned how to use Cadence Virtuoso to create integrated circuit layouts.
I learned how to perform analog mixed-signal simulations using Cadence Spectre AMS Designer.
I learned how to design a ring oscillator and a Schmitt trigger.
Resources Used
In writing the Verilog code for this module, the following resources were used:
AI was not used to generate substantial portions of the Verilog code; however, AI was used in the code
review
and debugging phase to identify potentially problematic areas in the Verilog code and ensure the
Verilog's synthesizability.
In addition, Claude Code was also used to create the double-dabble BCD decoder.
ChatGPT was also used to create testbenches for the Double Dabble BCD decoder and the seven-segment
decoder, since these modules'
operations are based on very common structures.
To create some of the analog components in this design, such as the Schmitt trigger and the 16 MHz ring
oscillator, the following resources were consulted:
Woods, D. L., Wyma, J. M., Yund, E. W., Herron, T. J., & Reed, B. (2015). Factors influencing the
latency of simple reaction time. Frontiers in Human Neuroscience, 9, 131. https://doi.org/10.3389/fnhum.2015.00131.
Filanovsky, I. M., and H. Bakes. "CMOS Schmitt Trigger Design." IEEE Transactions on Circuits and
Systems I: Fundamental Theory and Applications, vol. 41, no. 1, Jan. 1994, pp. 46-49. Massachusetts
Institute of Technology, https://web.mit.edu/magic/Public/papers/00260219.pdf.