Question
i just want the code
Write a module in Verilog HDL that describes a parallel load shift register. The following are the requirements for the shift
0 0
Add a comment Improve this question Transcribed image text
Answer #1

module ShReg(clk, rst, dataIn, dataLoad, shEnable, serialOut);

parameter WIDTH = n // here n is any number requirement of your bit....

input clk, rst, dataLoad, shEnable;

Input [n:0] dataIn;

output serialOut;

reg [n:0] shift bus ;

always@(posedge clk)

begin

If (rst)

shift bus <= n b'0;

else begin

If ( dataLoad)

begin

shift bus <= dataIn; // parallel data load....

end

else begin

if(shEnable) begin

shift bus <= shift bus >> 1; // right shift by one bit...

serialOut <= shift bus[0]; end

end

end

end

end module

Add a comment
Know the answer?
Add Answer to:
i just want the code Write a module in Verilog HDL that describes a parallel load...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • WRITE THE CODE IN VERILOG: Instead of using Registers, USE D FLIP FLOPS and a clock....

    WRITE THE CODE IN VERILOG: Instead of using Registers, USE D FLIP FLOPS and a clock. Include the logic for a reset A sequential circuit with three D flip-flops A, B, and C, a trigger x, and an output z1, and zo. On this state machine diagram, the label of the states are in the order of (ABC), the transition is the one bit x, and the output is under the forward slash. x/z1zo. The start state is 001 0/01...

  • 1.) a.) Using the simplified instruction set shown for part b, write code for the following....

    1.) a.) Using the simplified instruction set shown for part b, write code for the following. Suppose memory locations 1400 to 1449 contain 16-bit words. Each word represents 2 ASCII characters. Write code to read in and write out these 100 characters. Left-side character from location 1400 should be first, right-side character from location 1400 should be second, and remaining characters follow in numeric order. Assume you have access to 4 registers: R1, R2, R3, R4. Each register holds one...

  • In C++ Do not use a compiler like CodeBlocks or online. Trace the code by hand....

    In C++ Do not use a compiler like CodeBlocks or online. Trace the code by hand. Do not write "#include" and do not write whole "main()" function. Write only the minimal necessary code to accomplish the required task.                                                                                                           Save your answer file with the name: "FinalA.txt" 1) (2 pts) Given this loop                                                                                              int cnt = 1;     do {     cnt += 3;     } while (cnt < 25);     cout << cnt; It runs ________ times    ...

  • Determine the period number of the ufk-4 cos(K+TT/2) discrete time signal! Select one: O A. 34 O ...

    Determine the period number of the ufk-4 cos(K+TT/2) discrete time signal! Select one: O A. 34 O D. Non periodic O E. 34/3 A coil (L 5 mH) is parallel connected to two serially connected resistors (6 kΩ and 4 k2). Calculate the time constant of the above two-pole! Select one: Ο Α.0.5s OC. 5 s Ο D. 0.5 με Ο Ε.0.5 Ms Consider the following sequential network: Z2 Di Ct ㄍ洼 S2 Q2 CLK Choose which function does this...

  • (might be 1 or 2, MCQ questions were having images given with them, which we couldn't...

    (might be 1 or 2, MCQ questions were having images given with them, which we couldn't insert, so ignore those questions if you cannot answer, sorry for inconveinience created, i tried to delete them but might be couldn't done all) 3) Single phase induction motors work because: a) The oscillating magnetic field can induce starting torque in a rotor. b) The oscillating magnetic field can induce running torque in a rotor. c) A capacitance or inductance can create the phase...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • summarizr the followung info and write them in your own words and break them into different...

    summarizr the followung info and write them in your own words and break them into different key points.   6.5 Metering Chamber: 6.5.1 The minimum size of the metering box is governed by the metering area required to obtain a representative test area for the specimen (see 7.2) and for maintenance of reasonable test accuracy. For example, for specimens incorporating air spaces or stud spaces, the metering area shall span an integral number of spaces (see 5.5). The depth of...

  • summatize the following info and break them into differeng key points. write them in yojr own...

    summatize the following info and break them into differeng key points. write them in yojr own words   apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT