subject
Engineering, 20.10.2020 20:01 lol23051

Create a Verilog module called ssdec that has three ports: • in: a four-bit input wire • enable: a single input wire • out: a seven-bit output wire The module should implement a hexadecimal decoder for a seven-segment display. It should be similar to the work you did for Lab Experiment 6. This time, however, the decoder will only light LED segments if the enable wire is asserted. The decoder outputs will all be low if the enable wire is low. Instantiate the ssdec module into the standard top module with a statement like this: ssdec ss(.in (pb[3:0]), .enable (pb[19]), .out(ss0[6:0])); The end result should be Verilog code that will display the four-bit value placed on buttons 3..0 on the ss0 display when the 'Z' button is pressed. Submit the Verilog code for both the top and ssdec modules below. Reuse the ssdec module from (1), and build a new top module that instantiates ssdec eight times---one for each of the eight seven-segment displays. Connect each one to its own display. Connect all of their enable wires to pb[19] (the 'Z') button. Connect all of their input wires to pb[3:0]. The end result should be that all eight seven-segment displays show a hexadecimal representation of the binary pattern entered with buttons 3..0. (It is possible to do this with only a single instantiation of ssdec with its outputs connected to all the displays. However, we really want you to make eight separate instances of ssdec this time. Update the design you created in question (2). Modify the enable port for each ssdec instance such that pb[18:16] (which is the set of buttons Y, X and W) indicates which display should turn on. pb[18:16] is a 3-bit binary value, which can be used to represent (-7, so for example if you press pb[18] and pb[16] (or Y and W, which represents the number 5, or 3'b101) the digit should be displayed on ss5. You should be able to change the digit using pb[3:0]. To hold down buttons in the simulator, make sure your editor cursor is not active by clicking anywhere inside the page other than the editor, and pressing the keys 0-9, A-F, or W/X/Y/Z while holding down Shift. This allows you to test multiple digits on multiple displays. Submit the Verilog code for the top and ssdec modules below.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
question
Engineering, 04.07.2019 18:20
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
question
Engineering, 04.07.2019 19:10
Starting wih an energy balance on a rectangular volume element, derive the one- dimensional transient heat conduction equation for a plane wall with constant thermal conductivity and no heat generation.
Answers: 1
You know the right answer?
Create a Verilog module called ssdec that has three ports: • in: a four-bit input wire • enable: a s...
Questions
question
Mathematics, 15.10.2019 00:00
question
Mathematics, 15.10.2019 00:00
question
Mathematics, 15.10.2019 00:00
question
History, 15.10.2019 00:00
question
Mathematics, 15.10.2019 00:00
Questions on the website: 13722362