CSCI 355 --- Fall 2023

Lab 9

This lab has deliverables to be submitted and marked.

Due date: noon, 5 December 2023, Tuesday

Problem Description:

A hypothetical machine can work in manual mode or automatic mode. When it works in automatic mode, it can either work in a non terminating cycle of 3 states: prepare, cut and punch, or in a reverse non terminating cycle of the same 3 states: prepare, punch and cut.

The machine can receive two signals: AUTO and DIRC. When the AUTO signal is 0, the machine either goes to manual mode state if it's currently in any state of automatic mode, or stays in manual mode state if it's currently in the manual mode state. When the AUTO signal is 1, the machine either stays in the automatic mode if it's currently in any state of automatic mode, or goes to prepare state of the automatic mode if it's currently in manual mode state.

When the machine is in manual mode state, the DIRC signal is irrelevant. When the machine is in automatic mode, then the DIRC signal determines in which direction the machine cycles through the 3 states: DIRC signal being 0 means the machine cycles through the 3 states in the order of prepare, cut and punch; while DIRC signal being 1 means it cycles through the 3 states in the order of prepare, punch and cut.

Design and realize a sequential circuit to control the state transition of the machine based on the input sequence using JK Flip Flops (chip 7476) and other logic gates. Note that there is no explicit output for this circuit, but the output of each flip flop should be connected to an LED to observe the transition of the states.

Pre-lab Preparation:

For the design:

  1. generate a state diagram; (Deliverable: state diagram)
  2. generate a state table; (Deliverable: state table)
  3. generate next state K maps for each flip flop; (Deliverable: K maps)
  4. generate next state equation for each flip flop; (Deliverable: next state equations)
  5. generate input K maps for each input of each flip flop using excitation table; (Deliverable: K maps)
  6. show the expression describing each input of each flip flop; (Deliverable: input equations)

Based on your design, draw the logic schematic of the sequential circuit. (Deliverable: logic schematic)

For each chip used in your circuit, provide a complete pin out table. (Deliverable: pin out tables)

In-Lab Tasks:

  1. Present your pre-lab preparation to the instructor;
  2. If your preparation is approved, wire the sequential circuit based on your pin-out tables;
  3. Initialize your circuit to "manual mode" state, supply your circuit with a sequence of different combination of inputs, and observe and record the behaviour of your circuit. Determine whether your circuit actually implements the task specification.
  4. Demonstrate your circuit to your instructor if it has the correct behaviour and sign off each task.

(Optionally) take pictures of your circuits and integrate the pictures in your lab report.

The pre-lab preparation and the in-lab tasks can and should be done by a group of up to 2 students.

What to submit (Deliverables):

Lab report (a text or PDF file) that includes all the deliverables (except the physically wired circuits) and any accompanying files.

Please clearly identify your tables, diagrams and pictures with meaningful titles in your lab report.

How to submit:

You have two ways to submit:

Submit your lab report (.txt, or .pdf) and pictures (.png files) if any on any of the cub machines using the following script:
~liuh/bin/submit 355 Lab9 .

Alternatively, upload your report (and picture if any) to VIU Learn, under CSCI 355's assessment/assignment/Lab 9 tab.



Last updated: November 7, 2023