03-19-2019 01:47 AM
I am trying to sithesize below code in vivado 2018.2. Please find the attached code with filenames.
parameter LENGTH = 8,
parameter LSB =1
module main_cnt #(
parameter FIFO = 1 ) (
... different IO );
< module_logic >
I am trying to define parameters in a file and include parameter file by `include command. In ideal case, its expected to work, as `include will replace all content of included file at called location.
same code is getting synthesized on synopsis DC. But Vivado is throwing errors for me. How should I synthesize above code in vivado 2018.2.
03-19-2019 04:56 PM
What is the exact error that you are getting? Also, how did you set up your project to run? I made a quick testcase that looks like yours, and this worked fine for me. My guess is that there might be something in how this was set up.
03-22-2019 02:27 AM
Please find attached .v files. Also attached project.
I created a project and added main_cnt.v in project, set as top module.
As I have `include in main_cnt.v, params.v should have been automatically get added under non module sources But its under syntax error file and giving error for line 23 in param.v( parameter LENGTH = 5 ).
Also Its showing warning in main_cnt.v as `include directive not isolated on its own line.