Files
OpenSTA/verilog/test/verilog_remove_complex_buf.vok
T
Jaehyun KimandClaude Opus 4.6 b6d598a119 test: strengthen assertions, add sorted SDC diff, and clean up tests
- Add diff_files_sorted to test/helpers.tcl for hash-order-independent
  SDC comparison (fixes non-deterministic write_sdc output ordering)
- Use diff_files_sorted in sdc_derate_disable_deep and
  sdc_port_delay_advanced tests
- Remove stale coverage percentages from test comments (Comment 1)
- Remove unnecessary catch blocks in search property tests (Comment 3)
- Strengthen load-only tests with actual data verification (Comment 8)
- Remove orphan .ok files for deleted monolithic tests (Comment 9)
- Add golden .sdcok/.libok/.vok/.sdfok files for SDC/liberty/verilog
  write-and-diff tests
- Add -B (clean rebuild) option to make_coverage_report.sh
- Replace (void) casts and EXPECT_TRUE(true) with real assertions in
  TestSdc.cc and TestVerilog.cc

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Jaehyun Kim <[email protected]>
2026-02-23 11:50:23 +09:00

74 lines
1.5 KiB
Plaintext

module verilog_complex_bus_test (clk,
data_a,
data_b,
result,
carry,
overflow);
input clk;
input [7:0] data_a;
input [7:0] data_b;
output [7:0] result;
output carry;
output overflow;
wire internal_carry;
wire internal_overflow;
wire [7:0] stage1;
wire [7:0] stage2;
AND2_X1 and0 (.A1(stage1[0]),
.A2(data_b[0]),
.ZN(stage2[0]));
AND2_X1 and1 (.A1(stage1[1]),
.A2(data_b[1]),
.ZN(stage2[1]));
AND2_X1 and2 (.A1(stage1[2]),
.A2(data_b[2]),
.ZN(stage2[2]));
AND2_X1 and3 (.A1(stage1[3]),
.A2(data_b[3]),
.ZN(stage2[3]));
AND2_X1 and4 (.A1(stage1[4]),
.A2(data_b[4]),
.ZN(stage2[4]));
AND2_X1 and5 (.A1(stage1[5]),
.A2(data_b[5]),
.ZN(stage2[5]));
AND2_X1 and6 (.A1(stage1[6]),
.A2(data_b[6]),
.ZN(stage2[6]));
AND2_X1 and7 (.A1(stage1[7]),
.A2(data_b[7]),
.ZN(stage2[7]));
AND2_X1 and_ovfl (.A1(stage2[7]),
.A2(stage2[6]),
.ZN(internal_overflow));
OR2_X1 or_carry (.A1(stage2[7]),
.A2(stage2[6]),
.ZN(internal_carry));
DFF_X1 reg0 (.D(stage2[0]),
.CK(clk),
.Q(result[0]));
DFF_X1 reg1 (.D(stage2[1]),
.CK(clk),
.Q(result[1]));
DFF_X1 reg2 (.D(stage2[2]),
.CK(clk),
.Q(result[2]));
DFF_X1 reg3 (.D(stage2[3]),
.CK(clk),
.Q(result[3]));
DFF_X1 reg4 (.D(stage2[4]),
.CK(clk),
.Q(result[4]));
DFF_X1 reg5 (.D(stage2[5]),
.CK(clk),
.Q(result[5]));
DFF_X1 reg6 (.D(stage2[6]),
.CK(clk),
.Q(result[6]));
DFF_X1 reg7 (.D(stage2[7]),
.CK(clk),
.Q(result[7]));
endmodule