Answer to Question #135471 in Programming & Computer Science for Arepalli Sai Phani

Question #135471
Develop a testbench for the following parity checker

module parity checker(
input [7:0] bitt,
output reg ans
);

integer count = 0;
integer i = 0;

always@(bitt)
begin
count = 0;
for(i=0; i<=7; i=i+1)
begin
if(bitt[i]==1)
count = count + 1;
end
if(count%2==0) //even parity
ans = 1;
else
ans = 0;

end

endmodule

Verify the testbench using the following numbers: 0, 5, 86, 111.

Type out your testbench code and verify that it works using a computer program (modelsim or EDA playground)
1
Expert's answer
2020-09-27T23:45:22-0400
Dear Arepalli Sai Phani, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS