Cleanup space issues

This commit is contained in:
Cary R 2024-01-20 11:25:35 -08:00
parent f781940444
commit d42f97ecbe
4 changed files with 10 additions and 11 deletions

View File

@ -20,9 +20,9 @@ module top;
reg [159:0] a; reg [159:0] a;
reg start; reg start;
wire [95:0] out; wire [95:0] out;
ArraySliceWithNarrowStart dut(.a(a), .start(start), .out(out)); ArraySliceWithNarrowStart dut(.a(a), .start(start), .out(out));
initial begin initial begin
a = {32'h44444444, 32'h33333333, 32'h22222222, 32'h11111111}; a = {32'h44444444, 32'h33333333, 32'h22222222, 32'h11111111};
start = 1; start = 1;
@ -32,5 +32,5 @@ module top;
$finish; $finish;
end end
$display("PASSED"); $display("PASSED");
end end
endmodule endmodule

View File

@ -14,12 +14,12 @@ module top;
initial begin initial begin
pipe[0] = 1'b1; pipe[0] = 1'b1;
for (int j=0; j<10; j++) begin for (int j=0; j<10; j++) begin
$display(pipe[9]); $display(pipe[9]);
#2; #2;
end end
$finish(0); $finish(0);
end end
endmodule endmodule

View File

@ -2,17 +2,16 @@ module test(w);
input wire w; input wire w;
wire a, b; wire a, b;
initial begin initial begin
#11 $finish; #11 $finish;
end end
assign b = 0; assign b = 0;
assign a = !w | b; assign a = !w | b;
always @(a) begin always @(a) begin
$display($time, ": Wire a is now ", a); $display($time, ": Wire a is now ", a);
end end
endmodule endmodule

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2001-2023 Stephen Williams (steve@icarus.com) * Copyright (c) 2001-2024 Stephen Williams (steve@icarus.com)
* *
* This source code is free software; you can redistribute it * This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU * and/or modify it in source code form under the terms of the GNU
@ -120,7 +120,7 @@ int show_stmt_forloop(ivl_statement_t net, ivl_scope_t scope)
rc += show_statement(ivl_stmt_init_stmt(net), scope); rc += show_statement(ivl_stmt_init_stmt(net), scope);
/* Top of the loop, draw the condition test. */ /* Top of the loop, draw the condition test. */
fprintf(vvp_out, "T_%u.%u ; Top of for-loop \n", thread_count, top_label); fprintf(vvp_out, "T_%u.%u ; Top of for-loop\n", thread_count, top_label);
int use_flag = draw_eval_condition(ivl_stmt_cond_expr(net)); int use_flag = draw_eval_condition(ivl_stmt_cond_expr(net));
fprintf(vvp_out, " %%jmp/0xz T_%u.%u, %d;\n", fprintf(vvp_out, " %%jmp/0xz T_%u.%u, %d;\n",
thread_count, out_label, use_flag); thread_count, out_label, use_flag);