Module Divider - 8bit (Input CLK, Ce, SCLR, Output RFD, Input (7:0) Dividend, Divisor, Output (7:0) Quotient
Module Divider - 8bit (Input CLK, Ce, SCLR, Output RFD, Input (7:0) Dividend, Divisor, Output (7:0) Quotient
input clk,ce,sclr,
output rfd,
input [7:0] dividend,divisor,
output [7:0] quotient,
endmodule
module divider_8_tb;
// Inputs
reg clk;
reg ce;
reg sclr;
reg [7:0] dividend;
reg [7:0] divisor;
// Outputs
wire rfd;
wire [7:0] quotient;
wire [7:0] fractional;
initial begin
// Initialize Inputs
clk = 1;
ce = 1;
sclr = 1;
dividend = 8'b00001000;
divisor = 8'b00000010;
sclr = 0;
dividend = 8'b00001000;
divisor = 8'b00000010;
end
endmodule