Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module shiftA(q,clock,d);
- output [1:0] q;
- input clock,d;
- reg [1:0] q;
- always @(posedge clock)
- begin
- q[0]=d;
- q[1]=q[0];
- end
- endmodule
- module shiftB(q,clock,d);
- output [1:0] q;
- input clock,d;
- reg [1:0] q;
- always @(posedge clock)
- begin
- q[0]<=d;
- q[1]<=q[0];
- end
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement