Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
CEP Release v3.01
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiscarelli committed Dec 18, 2020
1 parent 0fa5ab5 commit c3243bd
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
Binary file removed .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ v3.0 - (18 December 2020)
* Initial LLKI release with Surrogate Root of Trust
* AES core replaced with LLKI-enabled AES core, all other cores remain unchanged

v3.01 - (19 December 2020)
* Removed used flash model reference in cep_tb.v

## Licensing
The CEP been developed with a goal of using components with non-viral, open source licensing whenever possible. When not feasible (such as Linux), pointers to reference repositories are given using the [get_external_dependencies.sh](./get_external_dependencies.sh) script.

Expand Down
34 changes: 18 additions & 16 deletions cosim/drivers/diag/cepSrotTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,96 +59,98 @@ int parse_message_status(uint8_t message_status, int verbose) {
case LLKI_STATUS_GOOD :
if (verbose) {
LOGI("\n");
LOGI("cepSrotTest_runTest: Good message received!\n");
LOGI("parse_message_status: Good message received!\n");
LOGI("\n");
}
break;
case LLKI_STATUS_KEY_PRESENT :
LOGI("\n");
LOGI("cepSrotTest_runTest: LLKI-KL Key Present\n");
LOGI("parse_message_status: LLKI-KL Key Present\n");
LOGI("\n");
return 0;
break;
case LLKI_STATUS_KEY_NOT_PRESENT :
LOGI("\n");
LOGI("cepSrotTest_runTest: LLKI-KL Key Not Present\n");
LOGI("parse_message_status: LLKI-KL Key Not Present\n");
LOGI("\n");
return 0;
break;
case LLKI_STATUS_BAD_MSG_ID :
LOGE("\n");
LOGE("cepSrotTest_runTest: Bad message ID\n");
LOGE("parse_message_status: Bad message ID\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_BAD_MSG_LEN :
LOGE("\n");
LOGE("cepSrotTest_runTest: Bad message length\n");
LOGE("parse_message_status: Bad message length\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_KEY_INDEX_EXCEED :
LOGE("\n");
LOGE("cepSrotTest_runTest: Key Index exceeds allowable bounds\n");
LOGE("parse_message_status: Key Index exceeds allowable bounds\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_KEY_INDEX_INVALID :
LOGE("\n");
LOGE("cepSrotTest_runTest: Referenced Key Index is not valid\n");
LOGE("parse_message_status: Referenced Key Index is not valid\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_BAD_POINTER_PAIR :
LOGE("\n");
LOGE("cepSrotTest_runTest: Referenced Key Index pointer pair is not valid\n");
LOGE("parse_message_status: Referenced Key Index pointer pair is not valid\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_BAD_CORE_INDEX :
LOGE("\n");
LOGE("cepSrotTest_runTest: Referenced Key Index specifies an out of bounds core index\n");
LOGE("parse_message_status: Referenced Key Index specifies an out of bounds core index\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_KL_REQ_BAD_MSG_ID :
LOGE("\n");
LOGE("cepSrotTest_runTest: LLKI-KL Request Bad Message ID\n");
LOGE("parse_message_status: LLKI-KL Request Bad Message ID\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_KL_REQ_BAD_MSG_LEN :
LOGE("\n");
LOGE("cepSrotTest_runTest: LLKI-KL Request Bad Message Length\n");
LOGE("parse_message_status: LLKI-KL Request Bad Message Length\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_KL_RESP_BAD_MSG_ID :
LOGE("\n");
LOGE("cepSrotTest_runTest: LLKI-KL Response Bad Message ID\n");
LOGE("parse_message_status: LLKI-KL Response Bad Message ID\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_KL_TILELINK_ERROR :
LOGE("\n");
LOGE("cepSrotTest_runTest: LLKI-KL Tilelink Error\n");
LOGE("parse_message_status: LLKI-KL Tilelink Error\n");
LOGE("\n");
return 1;
break;
case LLKI_STATUS_UNKNOWN_ERROR :
LOGE("\n");
LOGE("cepSrotTest_runTest: Unknown Error\n");
LOGE("parse_message_status: Unknown Error\n");
LOGE("\n");
return 1;
break;
default :
LOGE("\n");
LOGE("cepSrotTest_runTest: Unknown message error\n");
LOGE("parse_message_status: Unknown message error\n");
LOGE("\n");
return 1;
break;
} // end switch (my_message)

// Status is good
return 0;

} // end parse_message_status

int cepSrotTest_runTest(int cpuId, int seed, int verbose) {
Expand Down
17 changes: 6 additions & 11 deletions cosim/dvt/cep_tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ module cep_tb;
wire uart_txd;
wire uart_rtsn; pullup (weak1) (uart_rtsn);
assign uart_rxd = uart_txd;

// For now, we do NOT have a flash model
// no flow control support
//
wire sdio_sdio_clk;
Expand All @@ -499,17 +501,10 @@ module cep_tb;
wire sdio_sdio_dat_1; pullup (weak1) (sdio_sdio_dat_1);
wire sdio_sdio_dat_2; pullup (weak1) (sdio_sdio_dat_2);
wire sdio_sdio_dat_3; pullup (weak1) (sdio_sdio_dat_3);
// 512Mbit
s25fl512s spiFlash
(
.SCK (sdio_sdio_clk ), // topDesign_auto_topMod_spi_source_out_sck
.CSNeg (sdio_sdio_dat_3), // topDesign_auto_topMod_spi_source_out_cs_0
.SI (sdio_sdio_cmd ), // topDesign_auto_topMod_spi_source_out_dq_0_o
.SO (sdio_sdio_dat_0), // topDesign_auto_topMod_spi_source_out_dq_1_i
.WPNeg (sdio_sdio_dat_1), // not used!!!
.HOLDNeg(sdio_sdio_dat_2), // not used
.RSTNeg (sys_rst_n )
);





//
// ############################################
Expand Down
Binary file modified doc/version.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c3243bd

Please sign in to comment.