CSC258H1 Lecture Notes - Lecture 9: Verilog, Binary Number, Traffic Camera

33 views2 pages
19 Nov 2016
School
Course
Professor

Document Summary

Waveforms used to represent change in values over time. In digital logic, there are only two values (0 and 1) Assuming that signals change instantaneously, the waveforms look as below. Some more common and complex structures that will be covered in this course includes: Behaviour of multiplexers: output is x if s is 0, and y if s is 1. M = y * s + x * s" S is called selection input( or select input) A 2-to-1 mux has 3 inputs: 2 data inputs and 1 select input. 4-to-1-mux truth table->shortened form (i stands for inputs) 4-to-1 single-bit mux described using boolean notation module mux_logic( select, d, q); input[1:0] select; input[3:0] d; output q; assign q = ~select[1] &~select[0] & d[0] | ~select[1]&select[0] & d[1] | select[1]&~select[0] & d[2] | select[1]&select[0] & d[3]; Can also be described by explicitly instantiating gates(see ->) endmodule.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents