Removed my behavioral slt
This commit is contained in:
@@ -943,46 +943,6 @@ module shift_right_arithmetic_tb();
|
||||
end
|
||||
endmodule
|
||||
|
||||
module slt (
|
||||
input wire en,
|
||||
input wire [8:0] inA, inB,
|
||||
output reg [8:0] outA);
|
||||
|
||||
always @(inA, inB)begin
|
||||
if (inA < inB) begin
|
||||
outA = 9'b000000001;
|
||||
end
|
||||
else begin
|
||||
outA = 9'b000000000;
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
|
||||
//testbench
|
||||
module slt_tb();
|
||||
reg [8:0] indexA;
|
||||
reg [8:0] indexB;
|
||||
wire outputA;
|
||||
|
||||
slt slt0(
|
||||
.inA(indexA),
|
||||
.inB(indexB),
|
||||
.outA(outputA));
|
||||
|
||||
initial begin
|
||||
indexA = 9'b000000000;
|
||||
indexB = 9'b000000000;
|
||||
#10
|
||||
indexA = 9'b000000000;
|
||||
indexB = 9'b111100000;
|
||||
#10
|
||||
indexA = 9'b000001111;
|
||||
indexB = 9'b000000000;
|
||||
#10
|
||||
$finish;
|
||||
end
|
||||
endmodule
|
||||
|
||||
module sub_9bit(
|
||||
input wire [8:0] A,
|
||||
input wire [8:0] B,
|
||||
|
||||
Reference in New Issue
Block a user