From 0dcc957e0921de6f11ca69b3c98517934bd4a3c9 Mon Sep 17 00:00:00 2001 From: Michael Norris <108370498+Nitsirks@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:44:59 -0800 Subject: [PATCH] fixing doe bug caused by size of kv change (#629) * fixing doe bug caused by size of kv change * MICROSOFT AUTOMATED PIPELINE: Stamp 'user/dev/michnorris/doe_bug' with updated timestamp and hash after successful run --- .github/workflow_metadata/pr_hash | 2 +- .github/workflow_metadata/pr_timestamp | 2 +- src/doe/rtl/doe_fsm.sv | 2 +- .../smoke_test_doe_rand/smoke_test_doe_rand.c | 14 ++++++++------ 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflow_metadata/pr_hash b/.github/workflow_metadata/pr_hash index 74863e91b..029346579 100644 --- a/.github/workflow_metadata/pr_hash +++ b/.github/workflow_metadata/pr_hash @@ -1 +1 @@ -357380de0b348b9d1a310e0b453f12722d1da13d675bd806fa1e56eea5d6d607e2014b012630990cf5415705cb926e63 \ No newline at end of file +374c7baec55c97611a6c6065eb7ea4fb78561213bb5bdff113bf7d35ff86b3aa85d352dcf6d2e4327ccbddbadba392ae \ No newline at end of file diff --git a/.github/workflow_metadata/pr_timestamp b/.github/workflow_metadata/pr_timestamp index 3d08aa305..44425d126 100644 --- a/.github/workflow_metadata/pr_timestamp +++ b/.github/workflow_metadata/pr_timestamp @@ -1 +1 @@ -1731107556 \ No newline at end of file +1731352011 \ No newline at end of file diff --git a/src/doe/rtl/doe_fsm.sv b/src/doe/rtl/doe_fsm.sv index b412534d7..1760d979b 100644 --- a/src/doe/rtl/doe_fsm.sv +++ b/src/doe/rtl/doe_fsm.sv @@ -191,7 +191,7 @@ always_comb begin : kv_doe_fsm //clear block and write offsets when we go back to idle block_offset_en = '1; block_offset_nxt = '0; - dest_write_offset_en = '0; + dest_write_offset_en = '1; dest_write_offset_nxt = '0; end default: begin diff --git a/src/integration/test_suites/smoke_test_doe_rand/smoke_test_doe_rand.c b/src/integration/test_suites/smoke_test_doe_rand/smoke_test_doe_rand.c index e1bb39855..70c6eef1e 100644 --- a/src/integration/test_suites/smoke_test_doe_rand/smoke_test_doe_rand.c +++ b/src/integration/test_suites/smoke_test_doe_rand/smoke_test_doe_rand.c @@ -66,9 +66,10 @@ void main() { VPRINTF(LOW,"Rand UDS\n"); - //Start UDS and store in KV3 - SEND_STDOUT_CTRL(0xec); - *doe_ctrl = 0x0000000D; + //Inject random FE + SEND_STDOUT_CTRL(0xed); + //Start FE and store in KV23 + *doe_ctrl = 0x0000005e; //Entry 23, FE flow; // //Poll for DOE status while(doe_status_int != (DOE_REG_DOE_STATUS_VALID_MASK | DOE_REG_DOE_STATUS_READY_MASK)) { @@ -79,9 +80,10 @@ void main() { //Clear doe_status_int doe_status_int = 0; - //Start FE and store in KV23 - SEND_STDOUT_CTRL(0xed); - *doe_ctrl = 0x0000005e; //Entry 23, FE flow; + //Inject random UDS + SEND_STDOUT_CTRL(0xec); + //Start UDS and store in KV3 + *doe_ctrl = 0x0000000D; // //Poll for DOE status while(doe_status_int != (DOE_REG_DOE_STATUS_VALID_MASK | DOE_REG_DOE_STATUS_READY_MASK)) {