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

display statement in el2_ifu.sv #39

Open
KinzaQamar opened this issue Mar 25, 2022 · 6 comments
Open

display statement in el2_ifu.sv #39

KinzaQamar opened this issue Mar 25, 2022 · 6 comments

Comments

@KinzaQamar
Copy link

KinzaQamar commented Mar 25, 2022

Hi,
I saw these lines in el2_ifu.sv file
https://github.com/chipsalliance/Cores-SweRV-EL2/blob/7045b803cab825bc3bb3dbca0cb019e55098acc4/design/ifu/el2_ifu.sv#L340-L362
If we see line num 340, it says:
https://github.com/chipsalliance/Cores-SweRV-EL2/blob/7045b803cab825bc3bb3dbca0cb019e55098acc4/design/ifu/el2_ifu.sv#L340-L341
That on every falling edge of clock, if mcyclel value = 32'h00000010 then we will see all the $display statements.
However, when I write the csr mcyclel with 32`h00000010 it does nothing.

Can anybody help me out about how can I generate all the display statements? As I am currently understanding branch prediction of SweRV EL2, visualizing the results with the help of display statement would speedup my progress.

Thankyou,

@KinzaQamar
Copy link
Author

image
I am writing 32'h00000010 on 0xB80 (address of mycylel). Am I following the correct direction?

@agrobman
Copy link

it's designer's leftover to debug his stuff, I'm not sure about mcycle reference there , but you need to provide DUMP_BTB_ON define to compile this code...

@KinzaQamar
Copy link
Author

Yes, I had noticed that later. Can you let me know about how I can set this define DUMP_BTB_ON . I can't find this define other than el2_ifu.sv.

@agrobman
Copy link

add
define DUMP_BTB_ON in the beginning of the el2_ifu.sv file. or add +define+DUMP_BTB_ON` in your simulator compile command or in testbench/flist file

@agrobman
Copy link

need to `define ... in the el2_ifu.sv file . BTW, you don't need to write to mcycle in your test.

@KinzaQamar
Copy link
Author

KinzaQamar commented Mar 26, 2022

I have tried both ways but it didn't work

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