Skip to content

Commit c3a9835

Browse files
committed
Solved compile errors due to monitor and flist
1 parent 9338ef8 commit c3a9835

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

piton/tools/src/sims/manycore.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
-config_rtl=PITON_OST1
6060
#endif
6161
#ifdef FLIST_ARIANE
62+
-flist=$HPDCACHE_DIR/rtl/hpdcache.Flist
63+
-flist=$HPDCACHE_DIR/rtl/hpdcache_cva6.Flist
6264
-flist=$DV_ROOT/design/chip/tile/ariane/Flist.ariane
6365
-flist=$DV_ROOT/design/chipset/rv64_platform/Flist.rv64_platform
6466
-vcs_build_args="-sverilog +systemverilogext+.sv -ntb_opts uvm-1.1 +vpi"
@@ -71,8 +73,6 @@
7173
-config_rtl=PITON_RV64_CLINT
7274
-config_rtl=PITON_RV64_PLIC
7375
-config_rtl=WT_DCACHE
74-
-flist=$HPDCACHE_DIR/rtl/hpdcache.Flist
75-
-flist=$HPDCACHE_DIR/rtl/hpdcache_cva6.Flist
7676
#endif
7777
-flist=$DV_ROOT/design/chip/tile/common/rtl/Flist.clib_common
7878
-flist=$DV_ROOT/design/chip/tile/common/rtl/Flist.dlib_common

piton/verif/env/manycore/cmp_l15_messages_mon.v.pyv

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,14 @@ reg [`L15_WMT_ENTRY_MASK] wmt_read_data_TILE0 [0:3];
353353
integer j_TILE0;
354354
reg is_csm_mshrid_TILE0;
355355

356+
356357
reg wmt_read_val_s3_TILE0;
357358
always @ (posedge clk)
359+
`ifdef PITON_ARIANE_HPDC
360+
wmt_read_val_s3_TILE0 <= 0;
361+
`else
358362
wmt_read_val_s3_TILE0 <= `L15_PIPE0.l15_wmt_read_val_s2;
363+
`endif
359364

360365
always @ (negedge clk)
361366
begin
@@ -924,19 +929,27 @@ begin
924929
// $display(" WMT way3: %x 0x%x", `L15_PIPE0.wmt_data_s3[3][`L15_WMT_VALID_MASK], `L15_PIPE0.wmt_data_s3[3][`L15_WMT_DATA_MASK]);
925930
for (i = 0; i < `L1D_WAY_COUNT; i = i + 1)
926931
begin
932+
`ifdef PITON_ARIANE_HPDC
933+
$display(" WMT way%d: %x 0x%x", i, 0, 0);
934+
`else
927935
$display(" WMT way%d: %x 0x%x", i, `L15_PIPE0.wmt_data_s3[i][`L15_WMT_VALID_MASK], `L15_PIPE0.wmt_data_s3[i][`L15_WMT_DATA_MASK]);
936+
`endif
928937
end
929938
end
930-
if (`L15_PIPE0.l15_wmt_write_val_s3)
931-
begin
932-
$display(" TILE0 WMT write index: %x", `L15_PIPE0.cache_index_l1d_s3[`L1D_SET_IDX_MASK]);
933-
// $display(" WMT write mask: %x", `L15_PIPE0.l15_wmt_write_mask_s3);
934-
// $display(" WMT write data: %x", `L15_PIPE0.l15_wmt_write_data_s3);
935-
// $display(" WMT way0 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_0_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_0_MASK]);
936-
// $display(" WMT way1 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_1_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_1_MASK]);
937-
// $display(" WMT way2 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_2_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_2_MASK]);
938-
// $display(" WMT way3 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_3_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_3_MASK]);
939-
end
939+
`ifdef PITON_ARIANE_HPDC
940+
$display(" TILE0 WMT write index: %x", 0);
941+
`else
942+
if (`L15_PIPE0.l15_wmt_write_val_s3)
943+
begin
944+
$display(" TILE0 WMT write index: %x", `L15_PIPE0.cache_index_l1d_s3[`L1D_SET_IDX_MASK]);
945+
// $display(" WMT write mask: %x", `L15_PIPE0.l15_wmt_write_mask_s3);
946+
// $display(" WMT write data: %x", `L15_PIPE0.l15_wmt_write_data_s3);
947+
// $display(" WMT way0 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_0_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_0_MASK]);
948+
// $display(" WMT way1 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_1_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_1_MASK]);
949+
// $display(" WMT way2 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_2_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_2_MASK]);
950+
// $display(" WMT way3 m%x d0x%x", `L15_PIPE0.l15_wmt_write_mask_s3[`L15_WMT_ENTRY_3_MASK], `L15_PIPE0.wmt_write_data_s3[`L15_WMT_ENTRY_3_MASK]);
951+
end
952+
`endif
940953
end
941954
$display ("L15_MON_END");
942955
$display ("");
@@ -1178,6 +1191,7 @@ begin
11781191
end
11791192

11801193
// Monitor WMT duplicate error
1194+
`ifndef PITON_ARIANE_HPDC
11811195
if (`L15_PIPE0.val_s3)
11821196
begin
11831197
{wmt_read_data_TILE0[3], wmt_read_data_TILE0[2], wmt_read_data_TILE0[1], wmt_read_data_TILE0[0]} = `L15_PIPE0.wmt_l15_data_s3;
@@ -1196,6 +1210,7 @@ begin
11961210
end
11971211
end
11981212
end
1213+
`endif
11991214

12001215
// Monitor tags duplication error (bug #86)
12011216
if (`L15_PIPE0.val_s2 && `L15_PIPE0.decoder_dtag_operation_s2 == `L15_DTAG_OP_READ)

0 commit comments

Comments
 (0)