Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

module SerialMoore ( Clk , rst , LdA, LdB , A , B , Sum ) ; input C 1 k , rst , LdA,

module SerialMoore(Clk, rst, LdA, LdB, A, B, Sum);
input C1k, rst, LdA, LdB;
input [7:0]A,B;
output reg [7:0]Sum;
reg [7:0]a,b;
reg s;
reg [1:0]state, next_state;
parameter [1:]G=0,G1=1,H=2,H1=3;
integer i, j, k;
//Register A
always@(posedge C1k, posedge rst)
if(rst) a ;
else if (LdA)aA;
else begin
for )=0;i7;i=(i+1
a[i]a[i+1];
a[7]1'be;
end
//Register B
always@(posedge Clk, posedge rst)
if(rst)b0;
else if (LdB)bB;
else begin
for )=0;j7;j=(j+1
b[j]b[j+1];
b[7]1'be;
end
//Register Sum
always@(posedge clk, posedge rst)
if(rst) Sum 0;
else begin
for )=0;k7;k=(k+1
Sum [k]?Sum[k+1];
Sum[7]s;
end
//State Register
always@(posedge c1k, posedge rst)
if(rst) state GO;
else state next_state;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions