Initial commit
This commit is contained in:
41
Exp2/Exp2.srcs/sim_1/new/tb_VotingMachine.v
Normal file
41
Exp2/Exp2.srcs/sim_1/new/tb_VotingMachine.v
Normal file
@@ -0,0 +1,41 @@
|
||||
`timescale 1ns / 1ps
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
// Company:
|
||||
// Engineer:
|
||||
//
|
||||
// Create Date: 2024/10/24 10:08:30
|
||||
// Design Name:
|
||||
// Module Name: tb_VotingMachine
|
||||
// Project Name:
|
||||
// Target Devices:
|
||||
// Tool Versions:
|
||||
// Description:
|
||||
//
|
||||
// Dependencies:
|
||||
//
|
||||
// Revision:
|
||||
// Revision 0.01 - File Created
|
||||
// Additional Comments:
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
module tb_VotingMachine();
|
||||
reg [4:0] votes;
|
||||
wire [6:0] seg1;
|
||||
wire [6:0] seg2;
|
||||
VotingMachine dut (
|
||||
.votes(votes),
|
||||
.seg1(seg1),
|
||||
.seg2(seg2)
|
||||
);
|
||||
initial begin
|
||||
votes = 5'b00000; #10;
|
||||
votes = 5'b10000; #10;
|
||||
votes = 5'b11000; #10;
|
||||
votes = 5'b11100; #10;
|
||||
votes = 5'b11110; #10;
|
||||
votes = 5'b11111; #10;
|
||||
$stop;
|
||||
end
|
||||
endmodule
|
||||
Reference in New Issue
Block a user