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

sram: fakeram vs. mock SRAM #151

Merged
merged 1 commit into from
Sep 16, 2024
Merged

sram: fakeram vs. mock SRAM #151

merged 1 commit into from
Sep 16, 2024

Conversation

oharboe
Copy link
Collaborator

@oharboe oharboe commented Sep 15, 2024

No description provided.

@oharboe
Copy link
Collaborator Author

oharboe commented Sep 15, 2024

@jeffng-or FYI, will add fake sram tomorrow and write some docs. There are some snags to be fixed in bazel-orfs as well...

@oharboe
Copy link
Collaborator Author

oharboe commented Sep 15, 2024

@maliberty @jeffng-or There's no clock and "all_registers" returns 0 with fakeram. Is there something wrong with the fakeram .lib file?

Either use the standalone .tar below, or with this PR run:

bazel run //sram:top_fakeram_floorplan `pwd`/build
build/make gui_floorplan

untar no-clock-or-registers.tar.gz

./run-me-top-asap7-fakeram.sh

image

>>> llength [all_registers]
0
[WARNING GUI-0097] All pins are unconstrained. Cannot plot histogram. Check if timing data is loaded!
>>> report_clock_properties
Clock                   Period          Waveform
----------------------------------------------------

@oharboe oharboe force-pushed the mock-vs-fake-sram branch 3 times, most recently from ee801c0 to aec1dcc Compare September 16, 2024 06:01
sram/README.md Outdated
Mock SRAM based on fakeram's behavioral .v file
-----------------------------------------------

The .v file generated by fakeram does not build with yosys unmodified. The fakeram/sdq_17x64.sv has been manually pruend until it passed yosys.
Copy link
Contributor

@hovind hovind Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: s/pruend/pruned

Signed-off-by: Øyvind Harboe <[email protected]>
@oharboe oharboe merged commit e7e1e3b into main Sep 16, 2024
26 checks passed
@oharboe oharboe deleted the mock-vs-fake-sram branch September 16, 2024 10:06
@jeffng-or
Copy link

The fact that there are no clocks make sense. The sram/fakeram/constraints-sram.sdc defines the clock variables, but the call to source $PLATFORM_DIR/constraints.sdc is being gated by the all_registers check. Since all_registers is returning an empty list, we never get to create the clocks.

In terms of all_registers, the liberty only has pin definitions, so not sure what we expect all_registers to report.

@oharboe
Copy link
Collaborator Author

oharboe commented Sep 17, 2024

If the .lib does not have any registers how can it store state? The symptom is no clock, the cause is that all_registers returns empty...

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

Successfully merging this pull request may close these issues.

3 participants