1. Homepage
  2. Homework
  3. CS 2506 Computer Organization II DL01: A Simple Combinational Circuit
This question has been solved

CS 2506 Computer Organization II DL01: A Simple Combinational Circuit

Engage in a Conversation
USVirginia TechCS 2506Computer Organization II A Simple Combinational CircuitLogisim

Simple Combinational Circuit: Rock, Paper, Lizard, Spock CourseNana.COM

Background CourseNana.COM

For this project, you will be using Logisim 2.7.1 to create a simple combinational circuit that plays a simple matching game. The circuit requires nothing but basic logic gates, input and output pins, wires, and two LED units. CourseNana.COM

You should familiarize yourself with Logisim by working your way through the built-in tutorial. CourseNana.COM

The weekly TV documentary program Big Bang Theory1 introduced a game based on the classic rock-paper-scissors game that children have played for decades. In the BBT game, each player chooses one of five options: rock, paper, scissors, lizard or Spock. The winner, if any, is determined by a simple set of rules that rank the “power” of each option in such a way that no single option is a guaranteed winner. CourseNana.COM

Rock-Paper-Lizard-Spock Game Circuit CourseNana.COM

In order to simplify this assignment, we will modify the BBT version by eliminating “scissors” as an option. (Really, we should not allow most of the cast of BBT to handle anything sharp anyway.) CourseNana.COM

The winner of our simplified game is determined according to the following rules: CourseNana.COM

  • rock vs paper
  • rock vs lizard
  • rock vs Spock
  • paper vs lizard
  • paper vs Spock
  • lizard vs Spock

paper wraps rock, so paper wins
rock crushes lizard, so rock wins Spock vaporizes rock, so Spock wins lizard eats paper, so lizard wins paper disproves Spock, so paper wins lizard poisons Spock, so lizard wins
CourseNana.COM

Other combinations, such as rock vs rock, produce no winner. CourseNana.COM

You will implement a simple circuit, named RockPaperLizardSpock, that takes inputs indicating the option chosen by each of two players, and sets two LED output components to indicate the winner, based upon those input settings and the rules given above. CourseNana.COM

When designing and implementing a circuit like this, where the input values are not naturally viewed as integers, one of the first steps is to decide how to represent the input and output data. In this case, each player must make a choice among four options, so it’s natural to represent the choices (in hardware) as two-bit integers (0, 1, 2, and 3). In order to make the grading simpler, we will mandate that you represent the input values using the following mappings: CourseNana.COM

Choice
rock 00 paper 01 lizard 10 Spock 11
CourseNana.COM

Therefore, the circuit will take two 2-bit inputs (so 4 input bits altogether). CourseNana.COM

As for output, there are three cases: player 1 wins, player 2 wins, and no one wins. We will represent those outcomes by 00, 11, and 01, respectively. (There’s a reason we defined these in that manner; it actually simplifies the analysis of to produce a Boolean function for each output bit.) CourseNana.COM

For the output to be attractive, the circuit must be able to clearly indicate which of the two players has won, or that neither has won. A simple way to do that is to employ an LED component for each player, and to turn on a player’s LED if and only if that player has won. The LED outputs should be set so that the winner, if any, is indicated by a green LED, and CourseNana.COM

Representation CourseNana.COM

non-winners are indicated by red. Note that the LED components must be controlled by using the two output bits set by the circuit, and that both LEDs should be red if there is no winner. CourseNana.COM

There will be two deliverables for the assignment. The first is a text file containing a truth table corresponding to the operation of the circuit, the Boolean functions for each of the two output bits, and simplified versions of those functions (including the algebraic derivation of the simplification.). To make grading easier, you will structure the truth table as follows: CourseNana.COM

A1 A0 B1 B0 W1 W0 ---------------------- 0000?? 0001?? 0010?? CourseNana.COM

... CourseNana.COM

1101?? 1110?? 1111?? CourseNana.COM

---------------------- CourseNana.COM

Here, A1 and A0 form the option chosen by player A, B1 and B0 the option chosen by player B, and W1 and W0 the output bits indicating the winner (if any). Note the rows of the table are ordered so that the 4 input bits “count” from 0000 to 1111. CourseNana.COM

The second deliverable is a single Logisim file containing your implementation of the circuit. Your main circuit must be named RockPaperLizardSpock, and must include the following interface elements: CourseNana.COM

  • ·  at the top: four 1-bit inputs, labelled A1, A0, B1, and B0, from left to right
  • ·  at the bottom: two 1-bit outputs, labelled W1 and W0, from left to right
  • ·  on the right side: two LED components, labeled A Wins and B Wins, from top to bottom

The layout and labelling of the input and output pins is important, because that determines the way Logisim will generate a truth table for your circuit, and we may use that truth table in our grading. CourseNana.COM

You are encouraged to create sub-circuits in your implementation, since that makes it possible to create a much simpler abstract view of the final design. In my case, I’ve implemented two sub-circuits that are shown below. RPLS takes the options choses by players A and B and computes the output bits W1 and W0. LEDControl takes W1 and W0 as input and sets the correct input signals for the two LED components. (I actually have two more sub-circuits that are not shown. Those perform computations that are used inside RPLS.) CourseNana.COM

You are not required to achieve a design that uses a minimal number of gate levels; in some cases, it’s better to have more levels in order to create a more modular design. CourseNana.COM

CourseNana.COM

  CourseNana.COM

What to submit CourseNana.COM

You will submit a single, uncompressed tar file containing your text and Logisim files to Canvas. CourseNana.COM

It is a common misconception that Big Bang Theory is a situational comedy (sitcom). It is actually a documentary study of the sort of people we interact with on a daily basis. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
US代写,Virginia Tech代写,CS 2506代写,Computer Organization II 代写,A Simple Combinational Circuit代写,Logisim代写,US代编,Virginia Tech代编,CS 2506代编,Computer Organization II 代编,A Simple Combinational Circuit代编,Logisim代编,US代考,Virginia Tech代考,CS 2506代考,Computer Organization II 代考,A Simple Combinational Circuit代考,Logisim代考,UShelp,Virginia Techhelp,CS 2506help,Computer Organization II help,A Simple Combinational Circuithelp,Logisimhelp,US作业代写,Virginia Tech作业代写,CS 2506作业代写,Computer Organization II 作业代写,A Simple Combinational Circuit作业代写,Logisim作业代写,US编程代写,Virginia Tech编程代写,CS 2506编程代写,Computer Organization II 编程代写,A Simple Combinational Circuit编程代写,Logisim编程代写,USprogramming help,Virginia Techprogramming help,CS 2506programming help,Computer Organization II programming help,A Simple Combinational Circuitprogramming help,Logisimprogramming help,USassignment help,Virginia Techassignment help,CS 2506assignment help,Computer Organization II assignment help,A Simple Combinational Circuitassignment help,Logisimassignment help,USsolution,Virginia Techsolution,CS 2506solution,Computer Organization II solution,A Simple Combinational Circuitsolution,Logisimsolution,