Assignment#9
.pdf
keyboard_arrow_up
School
McGill University *
*We aren’t endorsed by this school
Course
222
Subject
Computer Science
Date
Apr 3, 2024
Type
Pages
2
Uploaded by DoctorFogTiger26
Assignment #9: Memory Elements and Counters
1
Assignment #9: Memory Elements and Counters
Available
Due Date
March 18, 2024 at 11:35am EST
March 25, 2024 at 11:35am EST
Instructions
• Write your answers by hand, or typeset them using a software package. For typeset answers,
don’t use a font size less than 10pt.
• Write out your answers clearly and legibly on paper
• Write your name and student ID at the top of the answer page
• Submit your answers as
a single PDF file
through myCourses under the assignment tab before
the deadline
• A late penalty of 33.3% of the grade will be deducted per each day or part of day delay
• Your answer may not be graded if you fail to abide by the instructions
—————————————————————————————————————————————
—————————————————————————————————————————————
Question 1
[
30 points
]
: Flip-flops
a.
[
15 points
]
Show how a T flip-flop can be constructed using a D flip-flop and other logic gates.
b.
[
15 points
]
Show how a JK flip-flop can be constructed using a T flip-flop and other logic gates.
—————————————————————————————————————————————
Question 2
[
20 points
]
: A four-bit barrel shifter is a combinational circuit with four data inputs,
two control inputs, and two data outputs. It allows the data inputs to be shifted onto the outputs
by 0, 1, 2, or 3 bit positions, with the rightmost bits wrapping around (rotating) to the leftmost
bits. For example, if the data inputs are 1100 and the control input specifies a two-bit shift, then
the output would be 0011. If the data input is 1110, a two-bit rotation produces 1011. Design a
four-bit shift register using a barrel shifter that can shift to the right by 0, 1, 2, or 3 positions.
McGill University
ECSE 222 – Digital Logic (Winter 2024)
Assignment #9: Memory Elements and Counters
2
—————————————————————————————————————————————
Question 3
[
25 points
]
: Design a three-bit synchronous counter with parallel load using T flip-
flops and other gates
/
building blocks.
—————————————————————————————————————————————
Question 4
[
25 points
]
: Design a four-bit up
/
down counter using T flip-flops. It should include
a control input called
Up
/
D own
. If
Up
/
D own
=
1, then the circuit should behave as an up-
counter. If
Up
/
D own
=
0, then the circuit should behave as a down-counter.
McGill University
ECSE 222 – Digital Logic (Winter 2024)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
What is the difference between a proportionally spaced font and a monospaced font?
arrow_forward
Create the Trim Molding calculator
• Ask for the total number of walls in a room
• Ask each wall's length (use a loop),
Calculate the amount of trim needed.
Display the number of trim pieces needed
D
arrow_forward
Implement the using Windows form App(.NET Framework) c# :
1- creat a Form titled “ Students ”
2- Add text box with max 100 letter, where student can enter his name
3- Add Grade combobox where student can select his grade (A-B-C-D-E-F)
4- Add button “Add”, when clicked the name and grade are added to the data view5- Add button “Stat” when clicked another form appears6- A data grid appears with grade vs count statistic (ex : A ,3 )
(please respond with screenshots )
arrow_forward
DO NOT COPY FROM OTHER WEBSITES
COde with comments and output screenshot is must for an Upvote. Thank you!!!
arrow_forward
That answer is wrong. Can you please read the instructions.
arrow_forward
For this code please add these features making it be able to :
#generate a blank image with black background, picture size is the same as frame
#allow it to calculate center point
#Draw white circles into the image generated at line 6, diameter is 6
arrow_forward
An Internet service provider(ISP) offers free customized websites for their customers. Customization includes;
“background-color” of webpages(you can choose just one color),
“font-size” that will be applied to all webpages (size that could be chosen is from 10 to 16),
“font” that will be applied to all webpages (limited to “Calibri(Body)”, “Arial” and “Times New Roman”) and
Contact Information that will be displayed at the bottom of every webpage and is formed from:
“E-mail address” and
“Telephone number”
Keeping in mind that there exists a unique customer number assigned to each customer and kept in a session variable named “cid” ($_SESSION[‘cid’]) during the login process;
Assuming that you have a database named “quizdb” with a database user named “quizusr” and password “pwd”;
Create the database table named “pages” using the information specified above(i - iv). Fill in the following table for each field that you created.
Field Name
Type
Length/Values
Index…
arrow_forward
Sans Serif fonts are usually used for printed media or documents that have large quantities of text.
False
True
arrow_forward
A unit square is shown below. What will be the image of unit square after horizontal and vertical contraction and expansion.
arrow_forward
Helloo!! Urgent help please include screenshot of codes VBA excel thank you thank you so much I appreciate you so much thank u!!
arrow_forward
Parameter error. Unsupported picture size. Pictures must be
40-2600 pixels.
arrow_forward
Please help me with this
1. Create a t squared tractal
2. create a viscek fractal (comment the code)
arrow_forward
body { background-color:rgb(207, 201, 186);
color:rgb(26, 12, 2);
margin: 15px;
padding: 10px;
margin-right:50px;
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}
h1 { font-size: 32px;
text-align: center;
margin-top: 2em;
padding: top 50px;
text-transform:uppercase;}
a:link {
color:rgb(26, 12, 2) ;
font-size:29px;
}
a:hover {
color:rgba(80, 44, 18, 0.555);
}
a:active {
color:rgba(196, 139, 99, 0.555);
}
h2 {
font-size: 20px;
}
h3 {
font-size:larger;
margin: 20px;
padding-top: 10px;
}
h4 {
font-size: large;
margin: 20px;
}
ul{
font-size:20px;
margin-left: 20px;
}
li{
font-size:20px ;
margin-left: 15px;
}
p {
font-size:25px;
padding: 5%;
text-align:center;
box-shadow:4px 4px 6px #000000;
border-color: antiquewhite;
border-radius: 15px;
}
img {
position: absolute;
top: 50%;
right:10%;
opacity: 85%;
border-radius: 10px;…
arrow_forward
Code to write:
Create JavaScript object array for Students with Id, Name, Program, GPA, Age.
How to submit:
Copy the code in the answer section.
BI
A
三 E
arrow_forward
Please do not give solution in image formate thanku
create a python program to tack the installer progress. please see below for detailes
We were asked to switch from a download model to a packaged model. Meaning the installers should not have to be downloaded from the internet each time but instead already be packaged and ready to go. The progress bar will need to should which stage the installer is currently on. By stage I mean which application is being installed and if it failed etc.
arrow_forward
Write a program named StopSign
that displays a pattern similar to
the image shown below.
XXXXXX
X
X
STOP
X
X
XXXXXX
X
X
X
arrow_forward
Q1) Website browsers have become extremely performance efficient over the years, therefore, it’s now possible to perform parallel web browsing by opening multiple tabs within one browsing window. This has raised an issue for the design part as when a user start opening multiple tabs the access bar gets narrower and in extreme cases the description of tab gets invisible, which makes it difficult for the user to go back to the specific tab. Please propose an improved design solutions respectively for novice, intermediate and expert users.
arrow_forward
Briefly describe how color codes are used by the BFS algorithm. Explain the significance of each color in your own words.
arrow_forward
نقطة واحدة
Fillet command can be utilize to
obtain
Rotated objects
Wider lines
Round corners
None of these
arrow_forward
PHP
Create a Web form to help in creating “Jumble” puzzles.
Create a form that has four input fields named Word1, Word2, Word3, and Word4, as well as “Reset” and “Submit” buttons. Create a form processing script that verifies that all four words are entered, that all of them contain only letters, and that all four are between 4 and 7 characters long. Once all of the words have been verified as correct, use the strtoupper() and str_shuffle() functions to produce four jumbled sets of letters.
To create the Jumble Maker form:
1. Create a new document in your text editor. Type the <!DOCTYPE html> declaration, <html> element, header information, and <body> element. The page title should be "Jumble Maker”, add to <title> </title> element.
2. Add the following HTML form tags in the body of the document:
<form action= "process_JumbleMaker.php" method="post">
Word 1: <input type="text" name="Word1" /><br />
Word 2: <input type="text"…
arrow_forward
Directions: The column on the left tells what to search for. On the second column, you
will write on the search box what will you type to achieve the task. Apply the use of
symbols and tip you've learned. The first one is done for you. Write your answer on a
separate sheet of paper.
Task
Search Term
Find web pages
Google Atlantis continent
that have...
all these words:
Atlantis continent
Google Atlantis continent –shuttle -film –movie
But don't show pages
that have..any of
these unwanted
words: shuttle film
movie
Find web pages
Google
that have...
all these words:
| Atlantis
Find web pages
Google
that have...
all these words:
Waterbury
But don't show pages
that have... any of
Google
these unwanted
words: Connecticu t
CT
Find web pages
Google
that have..
all these words:
Waterbury
this exact wording or
Google
phrase: San Diego
State University
Find web pages
Google
that have..
the song title of this
lyrics: Mama
"something'
arrow_forward
Design and implement a calculator using HTML, CSS (with Bootstrap) and JavaScript. The calculator will only run in the browser, and must not depend on any server side scripting (C#).
Functional requirements:
-A display that shows entry and results
-Number buttons on the calculator
-Supports resetting the calculator (C function)
-Supports clearing the current entry (CE function)
-Handles user errors (e.g. pressing "5++5" leads to "5+5", pressing "5+-5 leads to "5-5")
-Supports using the result in the next calculation
Each element of the calculator needs to be labeled with the following HTML id attribute:
Display: display
Each number button must have the following IDs: 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'
+ button: 'plus'
- button: 'minus'
* button: 'multiply'
/ button: 'divide'
= button: 'equals'
C button: 'reset'
CE button: 'clear'
IDs are used to find buttons on the page, correctly labeling HTML elements with IDs is important for the tests to…
arrow_forward
How long does the mouse pointer remain on a jagged line while editing code?
arrow_forward
PLEASE I NEED URGENTLY THANK YOU
For this task just think of this code as your code and prove what changes you would make with before and after photos
Task Program Amendments
Following your testing make any amendments necessary to ensure that the program runs to specification. Submit your program code with comments showing clearly where amendments have been made.
Here examples (attached image section)
I WANT AT LEAST 3 CHANGES / SCREENSHOTS Same like examples and write small writing about what you did.
my code Pastebin link because of word limit
https://pastebin.com/K9xpCevh
arrow_forward
__________ is the image’s width to height ratio. a. Aspect ratio b. Size ratio c. Projection ratio d. Area ratio
arrow_forward
Why must a scanner sometimes “peek” at upcoming characters?
arrow_forward
This is not an graded assignment please do this three questions show the work and explain how you got the answer !
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Related Questions
- What is the difference between a proportionally spaced font and a monospaced font?arrow_forwardCreate the Trim Molding calculator • Ask for the total number of walls in a room • Ask each wall's length (use a loop), Calculate the amount of trim needed. Display the number of trim pieces needed Darrow_forwardImplement the using Windows form App(.NET Framework) c# : 1- creat a Form titled “ Students ” 2- Add text box with max 100 letter, where student can enter his name 3- Add Grade combobox where student can select his grade (A-B-C-D-E-F) 4- Add button “Add”, when clicked the name and grade are added to the data view5- Add button “Stat” when clicked another form appears6- A data grid appears with grade vs count statistic (ex : A ,3 ) (please respond with screenshots )arrow_forward
- DO NOT COPY FROM OTHER WEBSITES COde with comments and output screenshot is must for an Upvote. Thank you!!!arrow_forwardThat answer is wrong. Can you please read the instructions.arrow_forwardFor this code please add these features making it be able to : #generate a blank image with black background, picture size is the same as frame #allow it to calculate center point #Draw white circles into the image generated at line 6, diameter is 6arrow_forward
- An Internet service provider(ISP) offers free customized websites for their customers. Customization includes; “background-color” of webpages(you can choose just one color), “font-size” that will be applied to all webpages (size that could be chosen is from 10 to 16), “font” that will be applied to all webpages (limited to “Calibri(Body)”, “Arial” and “Times New Roman”) and Contact Information that will be displayed at the bottom of every webpage and is formed from: “E-mail address” and “Telephone number” Keeping in mind that there exists a unique customer number assigned to each customer and kept in a session variable named “cid” ($_SESSION[‘cid’]) during the login process; Assuming that you have a database named “quizdb” with a database user named “quizusr” and password “pwd”; Create the database table named “pages” using the information specified above(i - iv). Fill in the following table for each field that you created. Field Name Type Length/Values Index…arrow_forwardSans Serif fonts are usually used for printed media or documents that have large quantities of text. False Truearrow_forwardA unit square is shown below. What will be the image of unit square after horizontal and vertical contraction and expansion.arrow_forward
- Helloo!! Urgent help please include screenshot of codes VBA excel thank you thank you so much I appreciate you so much thank u!!arrow_forwardParameter error. Unsupported picture size. Pictures must be 40-2600 pixels.arrow_forwardPlease help me with this 1. Create a t squared tractal 2. create a viscek fractal (comment the code)arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L