Question: Read the following Verilog module. Do not enter it into your computer. module lfsr ( R , Reset, Clock, Y ) ; input [ 2
Read the following Verilog module. Do not enter it into your computer.
module lfsrR Reset, Clock, Y;
input :;
input Reset;
input Clock;
output :;
reg :;
assign ;
always@ posedge Clock
if Reset
;
else
;
endmodule
A comment on combinatorial vs sequential Verilog: in combinatorial also known as continuous Ver
ilog we use assign statements to connect wires to gates and other components; the connections are
permanent, so any change in the elements in the righthand side of an assign will be immediately
reflected in the value of the lefthand side. In sequential Verilog, operations are synchronized to the
clock, and changes to registers happen only at a positive clock edge. In the above code, we can clearly
see the difference: the statement assign tells us that the value of the register is continuously
output on port Y Conversely, operations within the always block are executed on each positive clock
edge, that is when a discrete new input is provided. Therefore, when we assign a new value to Q that
change is also reflected in Y
A comment on the syntax: the curlybrace notation is used here to
construct a bit value from three constituent bits, from most to least significant: first then
finally
In the above module, if we initialize the module by asserting Reset and setting to what sequence
of values will be output on Y over the next five clock cycles? Give your answer as a sequence of six
binary values, starting with
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
