chipsalliance / caliptra-rtl

HW Design Collateral for Caliptra RoT IP
Apache License 2.0
75 stars 38 forks source link

Some modules cannot be simulated #556

Closed diswd closed 2 months ago

diswd commented 4 months ago

During the simulation of the Caliptra module, some issues occurred:

  1. kmac, issue: missing "caliptra_sva.svh"
  2. lc_ctrl, issue: top layer file not found, all in filelist are pkg
  3. sha512_masked, issue: there is an undefined port "lfsr_seed" in the module instantiation Can anyone help me solve these issues? Thank you very much.
calebofearth commented 3 months ago

Hi, what git tag are you compiling from? (1) If you simulate using the provided .vf file list, these files will all be included. Note that line 2 has +incdir+${CALIPTRA_ROOT}/src/libs/rtl which makes caliptra_sva.svh available. (2) There is no 'top layer file' for lc_ctrl, this is just a set of packages with typedefs, parameters, functions, etc. (3) I see this issue for the sha512_masked_core_tb instantiation. @mojtaba-bisheh can you take a look?

mojtaba-bisheh commented 3 months ago

ack lfsr_seed[73:0] is changed to entropy[191:0] for feeding the required randomness to DUT. I will update it

diswd commented 3 months ago

Hi, what git tag are you compiling from? (1) If you simulate using the provided .vf file list, these files will all be included. Note that line 2 has +incdir+${CALIPTRA_ROOT}/src/libs/rtl which makes caliptra_sva.svh available. (2) There is no 'top layer file' for lc_ctrl, this is just a set of packages with typedefs, parameters, functions, etc. (3) I see this issue for the sha512_masked_core_tb instantiation. @mojtaba-bisheh can you take a look?

Ok, Thanks for your help!

diswd commented 3 months ago

ack lfsr_seed[73:0] is changed to entropy[191:0] for feeding the required randomness to DUT. I will update it

Thank you very much!