Вы находитесь на странице: 1из 5

Write a VHDL program to implement a device consisting of a 4-input 2-bit multiplexer, and a

hexadecimal-to-7-segment decoder. (The decoder outputs are used to drive a 7-segemnt display as
used in labs.) The device performs multiplexing while at the same time, generates driving signals for
the 7-segment display to show the index of the selected input. Please name input and output
signals by yourself. It may be convenient to use components to implement the two blocks first.

Measure and Calulate the Vth (Thevenin Voltage) and Kn (Conduction Parameter) for the MOSFET.
Calculate the maximum acceptable input signal, taking into account the quiescent
conditions. Measure voltage gain at 10KHZ, using the maximum input signal. Express your answer
in dB.
The Project: Gas Pump Controller

Design two CONCEPTUALLY different finite-state synchronous machines for a


Gas Pump Controller (there are many correct solutions to this design)

Using different Flip-Flops (JK vs. D) or different number of states, are NOT
conceptually different (but Moore vs. Mealy are)

Design a Controller (Synchronous Machine) that:


- If nozzle handle switch is depressed and pump pressure sensor indicates low pressure --> gas is
pumped
- If pump pressure sensor indicates high pressure --> turn off pump
- System clock pulses every one second
- You can assume that once pump shuts off, pump pressure returns to normal within one second
- If pump pressure sensor indicates high pressure a second time --> turn off pump as the final
warning to stop
- If pump pressure sensor indicates high pressure a third time --> turn off pump permanently and
notify with warning light that reset is required to dispense any more gas

The Project: Gas Pump Controller

Inputs (2):
Nozzle handle switch position
Pump pressure sensor indicator
(Just like vending machine, there is an invalid input state: nozzle off and pressure high at the same
time cant happen)

Outputs (2):
Pump control
Attendant warning light

* All info to complete this design may not be specified. Write down and report any assumptions you
make in your design.
* Be sure to use debounced logic switches for driving the clock input to the flip-flops.

The Project: Gas Pump Controller

Planning:
1. State Definition Table
- Make your assumptions, determine your possible states and convert them to binary values
2. State Transition Diagram
- Illustrate how we transition from one state to the next
3. State Transition Table
- Inputs, States, Next States, Outputs
- Include everything even dont cares
4. Logic
- Combinational logic for next states (Register inputs) and Outputs (Kmaps) or Function Generators
(MUX, DEC, ROM, PAL, PLA)
- Flip flops (D, SR, JK, T)
Building:
You only have to build one of your designs, but be sure to pick a design that you have all the parts
you need (there are no ROM/PAL/PLA devices available)

Вам также может понравиться