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

Parse Structural Verilog to Netlist has issues with multiple outputs. #5

Open
PrashantVaidyanathan opened this issue Apr 28, 2014 · 5 comments
Assignees
Labels

Comments

@PrashantVaidyanathan
Copy link
Contributor

No description provided.

@PrashantVaidyanathan
Copy link
Contributor Author

Problem lies within OptimizeNetlist() function

@PrashantVaidyanathan
Copy link
Contributor Author

Test Verilog:
module and3(output out,out1,out2,out3,out4, input in1,in2,in3,in4);

wire w1,w2,w3,w4;
nor (out,in3,in1,in2);
or (out1,in1,in2,in3);
and a1(out2,in3,in2);
xnor (out3,in1,in2,in3);
not (out4,in3);

endmodule

@PrashantVaidyanathan
Copy link
Contributor Author

Narrowed the error down to the Output_OR portion of the function

@PrashantVaidyanathan
Copy link
Contributor Author

Solved

@PrashantVaidyanathan
Copy link
Contributor Author

Works fine for 2 -3 outputs. Has a slight issue with this netlist:
module and3(output out,out1,out2,out3,out4, input in1,in2,in3,in4);

wire w1,w2,w3,w4;
nor (out,in3,in1,in2);
or (out1,in1,in2,in3);
and a1(out2,in3,in2);
xnor (out3,in1,in2,in3);
not (out4,in3);

endmodule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant