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

Synchronous register file using MemoryBank #765

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

tilk
Copy link
Member

@tilk tilk commented Nov 27, 2024

This PR implements a synchronous register file. Read requests are done on RS selection, results are read, like previously, on RS insertion. The change will enable using FPGA Block RAMs and multiport RAM structures utilizing block RAMs.

Closes #737.

TODO:

@tilk tilk added optimization This is *just* an optimization! benchmark Benchmarks should be run for this change labels Nov 27, 2024
@tilk tilk changed the title Rf memorybank Synchronous register file using MemoryBank Nov 27, 2024
Copy link

Benchmarks summary

Performance benchmarks

aha-mont64 crc32 minver nettle-sha256 nsichneu slre statemate ud
0.417 (0.000) 0.513 (0.000) 0.337 (0.000) 0.655 (0.000) 0.361 (0.000) 0.290 (0.000) 0.326 (0.000) 0.431 (0.000)

You can view all the metrics here.

Synthesis benchmarks (basic)

Device utilisation: (ECP5) LUTs used as DFF: (ECP5) LUTs used as carry: (ECP5) LUTs used as ram: (ECP5) Max clock frequency (Fmax)
▲ 14290 (+621) ▲ 4365 (+102) ▲ 1490 (+32) ▼ 1196 (-256) ▼ 51 (-2)

Synthesis benchmarks (full)

Device utilisation: (ECP5) LUTs used as DFF: (ECP5) LUTs used as carry: (ECP5) LUTs used as ram: (ECP5) Max clock frequency (Fmax)
▼ 21518 (-4972) ▲ 6980 (+102) ▲ 1852 (+32) ▼ 1248 (-256) ▲ 43 (+3)

Copy link
Member

@piotro888 piotro888 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link

Benchmarks summary

Performance benchmarks

aha-mont64 crc32 minver nettle-sha256 nsichneu slre statemate ud
0.417 (0.000) 0.513 (0.000) 0.337 (0.000) 0.655 (0.000) 0.361 (0.000) 0.290 (0.000) 0.326 (0.000) 0.431 (0.000)

You can view all the metrics here.

Synthesis benchmarks (basic)

Device utilisation: (ECP5) LUTs used as DFF: (ECP5) LUTs used as carry: (ECP5) LUTs used as ram: (ECP5) Max clock frequency (Fmax)
▲ 14066 (+397) ▲ 4365 (+102) ▲ 1490 (+32) ▼ 1196 (-256) ▲ 54 (+1)

Synthesis benchmarks (full)

Device utilisation: (ECP5) LUTs used as DFF: (ECP5) LUTs used as carry: (ECP5) LUTs used as ram: (ECP5) Max clock frequency (Fmax)
▼ 20801 (-5689) ▲ 6980 (+102) ▲ 1852 (+32) ▼ 1248 (-256) ▲ 45 (+5)

@tilk tilk requested a review from lekcyjna123 November 30, 2024 21:13
Copy link

Benchmarks summary

Performance benchmarks

aha-mont64 crc32 minver nettle-sha256 nsichneu slre statemate ud
0.417 (0.000) 0.513 (0.000) 0.337 (0.000) 0.655 (0.000) 0.361 (0.000) 0.290 (0.000) 0.326 (0.000) 0.431 (0.000)

You can view all the metrics here.

Synthesis benchmarks (basic)

Device utilisation: (ECP5) LUTs used as DFF: (ECP5) LUTs used as carry: (ECP5) LUTs used as ram: (ECP5) Max clock frequency (Fmax)
▼ 14410 (-3318) ▲ 4365 (+102) 1458 (0) ▼ 1196 (-256) ▲ 52 (+5)

Synthesis benchmarks (full)

Device utilisation: (ECP5) LUTs used as DFF: (ECP5) LUTs used as carry: (ECP5) LUTs used as ram: (ECP5) Max clock frequency (Fmax)
▼ 20703 (-1315) ▲ 6980 (+102) ▲ 1852 (+32) ▼ 1248 (-256) ▲ 44 (+0)

@tilk tilk merged commit 32702be into kuznia-rdzeni:master Dec 10, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Benchmarks should be run for this change optimization This is *just* an optimization!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Register file using synchronous memory
2 participants