Simplified testbench a little

This commit is contained in:
WilliamMiceli
2019-03-29 16:16:11 -04:00
parent 20def71bb1
commit 44c057e40d

View File

@@ -253,12 +253,8 @@ module dataMemory_tb();
reg [8:0] address, writeData; reg [8:0] address, writeData;
wire [8:0] readData; wire [8:0] readData;
initial begin always
clk = 1'b0;
end
always begin
#5 clk = ~clk; // Period to be determined #5 clk = ~clk; // Period to be determined
end
dataMemory dM0( dataMemory dM0(
.clk(clk), .clk(clk),
@@ -268,7 +264,9 @@ module dataMemory_tb();
.readData(readData) .readData(readData)
); );
initial begin initial
begin
clk = 1'b0;
writeEnable = 1'b0; writeEnable = 1'b0;
address = 9'b000000000; address = 9'b000000000;
writeData = 9'b010101010; writeData = 9'b010101010;