Tests: Untabify some tests.
This commit is contained in:
parent
c9970ff822
commit
b698bfd850
|
|
@ -4,10 +4,10 @@
|
||||||
// any use, without warranty, 2020 by Wilson Snyder.
|
// any use, without warranty, 2020 by Wilson Snyder.
|
||||||
// SPDX-License-Identifier: CC0-1.0
|
// SPDX-License-Identifier: CC0-1.0
|
||||||
module t(/*AUTOARG*/);
|
module t(/*AUTOARG*/);
|
||||||
logic [31:0] tmp;
|
logic [31:0] tmp;
|
||||||
logic [31:0] tmp2;
|
logic [31:0] tmp2;
|
||||||
logic [31:0] tmp3;
|
logic [31:0] tmp3;
|
||||||
initial begin
|
initial begin
|
||||||
tmp = 0;
|
tmp = 0;
|
||||||
$monitor("[%0t] monitor0 %h", $time, tmp);
|
$monitor("[%0t] monitor0 %h", $time, tmp);
|
||||||
while (tmp < 32) begin
|
while (tmp < 32) begin
|
||||||
|
|
@ -20,5 +20,5 @@ initial begin
|
||||||
end
|
end
|
||||||
$write("*-* All Finished *-*\n");
|
$write("*-* All Finished *-*\n");
|
||||||
$finish();
|
$finish();
|
||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,5 @@
|
||||||
// DESCRIPTION: Verilator: Verilog Test module
|
// DESCRIPTION: Verilator: Verilog Test module
|
||||||
//
|
//
|
||||||
// This module takes a single clock input, and should either
|
|
||||||
// $write("*-* All Finished *-*\n");
|
|
||||||
// $finish;
|
|
||||||
// on success, or $stop.
|
|
||||||
//
|
|
||||||
// issue #5125
|
// issue #5125
|
||||||
// type used for __Vtrigprevexpr signal do not match type used for i/o port
|
// type used for __Vtrigprevexpr signal do not match type used for i/o port
|
||||||
//
|
//
|
||||||
|
|
@ -44,40 +39,40 @@ endmodule
|
||||||
|
|
||||||
|
|
||||||
module top (
|
module top (
|
||||||
input a,
|
input a,
|
||||||
output d
|
output d
|
||||||
);
|
);
|
||||||
|
|
||||||
logic b;
|
logic b;
|
||||||
logic c[1];
|
logic c[1];
|
||||||
assign c[0] = b;
|
assign c[0] = b;
|
||||||
|
|
||||||
unit i_unit
|
unit i_unit
|
||||||
(
|
(
|
||||||
.a (a),
|
.a (a),
|
||||||
.b (b),
|
.b (b),
|
||||||
.c (c),
|
.c (c),
|
||||||
.d (d)
|
.d (d)
|
||||||
);
|
);
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
|
||||||
module unit
|
module unit
|
||||||
(
|
(
|
||||||
input a,
|
input a,
|
||||||
input c[1],
|
input c[1],
|
||||||
output logic b,
|
output logic b,
|
||||||
output logic d
|
output logic d
|
||||||
);
|
);
|
||||||
|
|
||||||
// no_inline required to prevent optimising away the interesing part ...
|
// no_inline required to prevent optimising away the interesing part ...
|
||||||
/*verilator no_inline_module*/
|
/*verilator no_inline_module*/
|
||||||
|
|
||||||
always_comb
|
always_comb
|
||||||
begin
|
begin
|
||||||
b = a;
|
b = a;
|
||||||
d = b && c[0];
|
d = b && c[0];
|
||||||
end
|
end
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue