Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the file_type for SDF file #697

Open
desorya opened this issue Jun 27, 2024 · 2 comments
Open

What is the file_type for SDF file #697

desorya opened this issue Jun 27, 2024 · 2 comments

Comments

@desorya
Copy link

desorya commented Jun 27, 2024

Hi there,

I'm trying to run gate-level simulation with existed netlist on VCS so that I need to involve a standard delay format file.
I build a fileset like below but I don't know the exact file type for it.

filesets:
  sdf:
    files:
      - single_macro/env/MLM_macro_top_A.func_ssg_Cworst_T_m40.sdf.gz

I tried sdf, sdfSource, standardDelayFormat and DELAYFILE but nothing worked(neither zipped nor unzipped). The sdf file still not shown on generated file list.

Thank you!

@olofk
Copy link
Owner

olofk commented Jul 5, 2024

The VCS backend doesn't have support for SDF files yet.

I'm not a VCS user myself, but perhaps I can suggest a workaround. If you set file_type : user and also copyto : .. This will copy the SDF file to your work directory. If there is also some command-line option for loading SDF files, you can put that in vcs_options.

Best would of course be to have SDF directly supported, but someone needs to implement that.

@desorya
Copy link
Author

desorya commented Jul 5, 2024

The function that VCS uses to load the sdf file is $sdf_annotate() which only accepts string literal as input. If we use relative path as input, a FileNotFound error will be triggered because the fusesoc collects the source files and copy and put them into a new folder basing on the orders of the core file, which will disrupt the relative positions of the files.
In this case, we have to either use absolute path or add sdf file(with .gz surfix) into .core file and create a proper reference. In many cases, using absolute path is not a good choice because the path will vary from user and needs to be modified frequently. Including the sdf file in the .core file and referencing it in the tb should be a better approach, but the question here is how should we achieve that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants