Skip to content

Conversation

@AngeloJacobo
Copy link

@AngeloJacobo AngeloJacobo commented Jun 15, 2024

Good day,

(creating another PR as my previous one include the whole master branch)

Simulation is failing in Vivado simulation:
Screenshot from 2024-06-14 18-19-13

Looking on the testbench, it seems that the ch_enc_d is being compared to dec_q but the ch_enc_d is 1 cycle earlier relative to dec_q (as shown on the simulation below), causing all comparisons to fail in domino effect:
Screenshot from 2024-06-14 18-25-35

The simplest fix I saw is to change the edge of the testbench clock from posedge to negedge. And its passing now:
Screenshot from 2024-06-14 18-26-26

As an extra, I just added a slight fix to the syntax error in the file altecc_enc.v just to make the tool happy.

Thank you very much!

Kind regards,
Angelo

@rherveille
Copy link
Collaborator

The silly 'i' typo I incorporated and pushed.
However the simulations pass here without your changes. What simulator are you using?
How do you run the simulator; i.e. using what command

@rherveille rherveille self-assigned this Jun 20, 2024
@AngeloJacobo
Copy link
Author

Hi,

I am using the Xilinx Vivado simulator (Vivado 2022.1 specifically). I am not sure of the commands as I'm using the GUI. Importing all files from this repository, setting the testbench_top as the top-level simulation file, then just running the simulation will start and run the simulation.

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.

2 participants