Preview

Vlsi Sample Codes

Satisfactory Essays
Open Document
Open Document
325 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Vlsi Sample Codes
Examples
Source files for examples demonstrating the use of VHDL are in the /synopsys/syn/examples/vhdl directory. The examples are Moore Machine Mealy Machine Read–Only Memory (ROM) Waveform Generator Smart Waveform Generator Definable-Width Adder-Subtracter Count Zeros — Combinational Version Count Zeros — Sequential Version Soft Drink Machine — State Machine Version Soft Drink Machine — Count Nickels Version Carry-Lookahead Adder Serial-to-Parallel Converter — Counting Bits Serial-to-Parallel Converter — Shifting Bits Programmable Logic Array (PLA)

HOME

CONTENTS

INDEX

For further assistance, email support_center@synopsys.com or call your local support center

V3.4

VHDL Compiler Reference

Moore Machine
Figure A–1 is a diagram of a simple Moore finite-state machine. It has one input (X), four internal states (S0 to S3), and one output (Z).
Figure A–1 Moore Machine Specification
0 S0 0 0 1 Present state S0 S1 S2 S3 S2 1 0 1 S3 0 1 Next state X=0 X=1 S0 S0 S2 S3 S2 S2 S3 S1 Output (Z) X=0 0 1 1 0

S1 1

1

0

The VHDL code implementing this finite-state machine is shown in Example A–1, which includes a schematic of the synthesized circuit. The machine is described with two processes. One process defines the synchronous elements of the design (state registers); the other process defines the combinational part of the design (state assignment case statement). See the discussion under ‘‘wait Statement” in Chapter 6 for more details on using the two processes.

HOME

CONTENTS

INDEX

For further assistance, email support_center@synopsys.com or call your local support center

V3.4

VHDL Compiler Reference

Example A–1

Implementation of a Moore Machine –– Moore machine

entity MOORE is port(X, CLOCK: in BIT; Z: out BIT); end;

architecture BEHAVIOR of MOORE is type STATE_TYPE is (S0, S1, S2, S3); signal CURRENT_STATE, NEXT_STATE: STATE_TYPE; begin –– Process to hold combinational logic COMBIN: process(CURRENT_STATE, X)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECT114 week 3 lab

    • 299 Words
    • 2 Pages

    d. Open a block diagram file in Quartus II, Insert the logic symbol from part b. Add inputs and outputs. Name the inputs SWITCH1 and SWITCH2. Label the output as LIGHT. Copy and insert your figure below. (4 points)…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    2. What type of instruction is used to execute different code based on a condition? -Jumps…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Step 1: Examine the following algorithm as a base for how the program should flow. (Reference: Designing a Program, page 31).…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Quiz Comp Archi

    • 438 Words
    • 3 Pages

    10) Please describe the decoder circuit and working principle. Please describe the design flow of the control logic in a CPU.…

    • 438 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Ece241 Project

    • 583 Words
    • 3 Pages

    Recommended Design Techniques for ECE241 Project Franjo Plavec Department of Electrical and Computer Engineering University of Toronto DISCLAIMER: The information contained in this document does NOT contain official grading policy. The information provided here is based on my personal experience with ECE241 course projects in the previous years. Its purpose is to warn you of some common mistakes and answer some common questions student in earlier years had. As grading policies and project requirements change from year to year, please consult course web site or your instructor for official policies. THIS DOCUMENT MAY CONTAIN SOME MISTAKES. I will do my best to point those mistakes to you if I discover any, but I cannot make any guarantees. All information in this document is MY PERSONAL PREFERRED WAY OF DOING VARIOUS TASKS RELATED TO HARDWARE DESIGN. It is by no means the only possible way to perform these tasks. Also, this document does not cover, nor does it attempt to cover all aspects of various problems discussed. Therefore, you should not make any implications on aspects of the problems not mentioned in this document. In other words, if the document states X, and you try to do Y, which is “very similar to X”, do not assume that statements this document makes for X necessarily hold for Y. CHECK YOUR ASSUMPTIONS against your textbook, course notes, your instructor’s and/or TA’s advice, compilation and simulation results from Quartus, and finally, common sense. Verilog and Quartus Issues When using Verilog for the first time in a real project, users are often tempted to use fancy features of the language to make their lives easier. Unfortunately, if one succumbs to those temptations, they usually make their lives harder. The main reason for that is that Verilog, the way it is used in ECE241 labs and the way Quartus II interprets it, is not a programming language. Verilog is a hardware description language, meaning that various blocks of code directly map into…

    • 583 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ECT114 Week3 Homework

    • 1022 Words
    • 15 Pages

    Z is the output of a NAND gate. The Boolean operator for the NAND gate is , there should be an inversion bar over the entire expression, and the inputs are (A + B) and (C D). Refer to Chapter 3…

    • 1022 Words
    • 15 Pages
    Satisfactory Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    truth table construction, subexpression construction using AND and NOT gates, subexpression combination using OR gates, circuit diagram production…

    • 819 Words
    • 4 Pages
    Good Essays
  • Good Essays

    System State variables: c- Social Security capital, n- Maximum number of persons in the system at that point in time t- Time Discrete Event Simulation The simulation represents a discrete event simulation. The events all take place chronologically, and represent state changes at a particular point in the simulation. The simulation begins with the creation of a fixed number of persons, and the time at which a new person joining the workforce is generated from an exponential distribution to move time forward. This step is followed by generating more times…

    • 1131 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Booth Multiplier

    • 1627 Words
    • 7 Pages

    A gate level implementation was designed and simulated as a reference design. A 100ps inverter delay was assumed in the Verilog functional description of the logic primitives. Using logical effort the delays of the remaining primitives were approximated. A detailed description of the original gate level design along with explainations of the Booth algorithm, the architecture, the logic equations used for this design, and other background information can be found in the following reports: Lab 3 Part II: Gate Level Booth Multiplier and Lab 3 Parts I&III: Logic Primitives.…

    • 1627 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    De Morgan's Theorem

    • 485 Words
    • 2 Pages

    De Morgan’s theorem is used to simplify a lot expression of complicated logic gates. For example, (A + (BC)')'. The parentheses symbol is used in the example.…

    • 485 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    SEQUENCE DECTOR

    • 1869 Words
    • 8 Pages

    Step 1b – Characterize Each State by What has been Input and What is Expected…

    • 1869 Words
    • 8 Pages
    Satisfactory Essays
  • Better Essays

    It is generally agreed that finite automata are a natural medium to describe dynamic behaviors of reactive systems. Finite automata are formal and rigorous and computer programs can be easily written to simulate their behaviors.…

    • 1136 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    to 30 0C d.b. Identify all the condition data for both entry and exit states.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    (1) Reason forward from the initial states: Being form the root of the search tree. General the next level of the tree by finding all the rules whose left sides match the root node, and use their right sides to generate the siblings. Repeat the process until a configuration that matches the goal state is generated.…

    • 401 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In this diagram, the bubbles represent the states, and the arrows represent state transitions. The arrow labels indicate the input value corresponding to the transition. For instance, when the elevator is in the Ground state, and the input is Up, the next state is First. The information in…

    • 756 Words
    • 4 Pages
    Satisfactory Essays