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

post-synthesis simulation error #1904

Closed
zjenny09 opened this issue Dec 21, 2020 · 1 comment
Closed

post-synthesis simulation error #1904

zjenny09 opened this issue Dec 21, 2020 · 1 comment

Comments

@zjenny09
Copy link

I tried to run post-synthesis functional simulation for the conter_arty test in xc7/tests by Modelsim. And I found that only the wave of led[0] was correct, other 7 led wires were always 0 (see Fig.1).

The only difference from your original test is modifying the verilog file to add a reset function. The code is as follows:

`module top (
input wire clk,

input  wire [7:0] sw,
output wire [7:0] led

);

localparam BITS = 8;
localparam LOG2DELAY = 28;

reg [BITS+LOG2DELAY-1:0] counter = 0;

always @(posedge clk) begin
    if(!sw[0])
        counter <= 0;
    else
	    counter <= counter + 1;
end

assign led[7:0] = counter[7:0];

endmodule`

The post-synthesis file was generated by VPR, and the work libraries were symbiflow-arch-defs/vpr/primitives.v and symbiflow-arch-defs/xc/xc7/techmap/cells_sim.v.

Is there something wrong with the simulation cells? Or is there something wrong with the simulation process?

@litghost
Copy link
Contributor

litghost commented Jan 5, 2021

Is there something in the documentation that needs to be updated to support your use case? I see you closed the issue, but didn't mention how you resolved your issue. It is a good idea to mention what solved you problem in these kind of cases.

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