Timming now correct and also

7-segmet display also working now
This commit is contained in:
Imants Pulkstenis
2020-04-12 22:44:24 +03:00
parent be0c2ab376
commit 9a6c90c0b2
7 changed files with 149 additions and 132 deletions
+18 -2
View File
@@ -25,7 +25,7 @@
`timescale 10 ns / 1ns
//sub modules
`include "clock_divider_param.v"
`include "clock_divider.v"
`include "7segment.v"
`include "debounce_switch.v"
`include "counter.v"
@@ -46,6 +46,7 @@ module top_tb#( parameter
reg clk = 1'b0;
reg reset = 1'b0;
reg [3:0] sw = 4'b0000;
// 50% duty cycle clock
always #0.5 clk <= ~clk;
@@ -56,7 +57,8 @@ wire RsTx;
top Test_Unit(
.clk(clk),
.btnC(reset)
.sw(sw),
.btnC(reset)
);
initial begin
@@ -84,6 +86,20 @@ initial begin
$display("*");
#1_000_000;
$display("*");
#1_000_000;
$display("*");
#1_000_000;
$display("*");
#1_000_000;
$display("*");
#1_000_000;
$display("*");
#1_000_000;
$display("*");
#1_000_000;
$display("*");
#1_000_000;
$display("*");
$display(" ");
$display("Use this command to open timing diagram:");
$display("gtkwave -f wave.vcd");