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

Verilog Parser features required to parse Quartus Prime .vo/vqm files #141

Open
thunder-hammer opened this issue May 25, 2021 · 4 comments

Comments

@thunder-hammer
Copy link
Collaborator

thunder-hammer commented May 25, 2021

Currently I only have one example of each of these formats. There could be a lot more constructs than what I see.

VO files

defparam structure
defparam \avs_s1_readdata[12]~output .bus_hold = "false";

constants mapped to ports in instances
cyclonev_io_obuf \avs_s1_readdata[16]~output ( .seriesterminationcontrol(16'b0000000000000000));

the tri1 type

tri1 devclrn;
tri1 devpor;
tri1 devoe;

the tri0 type probably exists too? may as well support it.

! on port mappings within instances.

cyclonev_lcell_comb \ctrl_reg[7]~feeder (
	.dataf(!\avs_s1_writedata[7]~input_o )
	);

VQM files

Everything needed for VO files plus

inverters on assignment statements
assign \fp_pow_0002:fp_pow_inst|__ALT_INV__prodXY_uid496_pT2_uid435_expPolyEval_cma_s[0][49] = ~ \fp_pow_0002:fp_pow_inst|prodXY_uid496_pT2_uid435_expPolyEval_cma_s[0][49] ;

@thunder-hammer thunder-hammer self-assigned this May 25, 2021
@thunder-hammer
Copy link
Collaborator Author

The tri1 and tri0 types can be maintained like the wire and reg types. The composer needs to be updated to keep track of all these types.

@thunder-hammer
Copy link
Collaborator Author

The defparam should be able to be handled much the same way the current parser currently handles the parameters. Only difference is it may have to create a new instance to add the parameter to first?

@wirthlin
Copy link
Collaborator

wirthlin commented Jun 7, 2021

Note from Andrew:

VQM files are produced by synopsis simplify. The b13 vqm files are linked below (note that GitHub doesn't allow you to attach .vqm files so the extensions were renamed to please GitHub).

b13_2018.vm.txt
b13_2018.vqm.txt
b13_2018.vhm.txt

@thunder-hammer thunder-hammer moved this from Ideas to To do (for the next release) in Ideas for future releases Jun 7, 2021
@thunder-hammer
Copy link
Collaborator Author

Additional constructs found in the .vo format edited into the original issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Ideas for future releases
To do (for the next release)
Development

No branches or pull requests

2 participants