Tests: Fix t_dist_whitespace

This commit is contained in:
Wilson Snyder 2024-03-02 10:14:54 -05:00
parent da9521a351
commit a378dbd9b2
2 changed files with 8 additions and 6 deletions

View File

@ -10,6 +10,8 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
scenarios(dist => 1);
my $root = "..";
if (!-r "$root/.git") {
skip("Not in a git repository");
} else {

View File

@ -5,10 +5,10 @@
// SPDX-License-Identifier: CC0-1.0
module sub(input wire clk, cpu_reset);
reg reset_r;
always @(posedge clk) begin
reg reset_r;
always @(posedge clk) begin
reset_r <= cpu_reset; // The problematic one
end
end
endmodule
module TOP(/*AUTOARG*/
@ -19,14 +19,14 @@ module TOP(/*AUTOARG*/
input clk;
input reset_l;
reg sync_0, sync_1, sync_2;
wire _cpu_reset_chain_io_q = sync_0;
reg sync_0, sync_1, sync_2;
wire _cpu_reset_chain_io_q = sync_0;
sub sub (.clk(clk),
.cpu_reset(_cpu_reset_chain_io_q | !reset_l));
always @(posedge clk) begin
sync_0 <= sync_1;
sync_0 <= sync_1;
sync_1 <= sync_2;
sync_2 <= !reset_l;
end