Settings for fixed clock naming in Simple Dual Port RAM generation?
조회 수: 1 (최근 30일)
이전 댓글 표시
Depending on my generation settings, the clock naming conventions may vary in generated verilog for Simple Dual Port Ram blocks.
For instance, in one design, the DPRam has a clock port named simply, "clk". However, in a separate design which uses multiple clocks, the DPRam clock port gets the name "clk_1_16". The file names remain identical, however: "simpleDualPortRam_Wrapper_generic.v" and "simpleDualPortRam_Wrapper_generic.v".
As a result, when building my setup in the Xilinx Vivado environment, there will be a conflict between the multiple simpleDualPortRam_Wrapper_generic.v files with multiple clock port names.
Is there some way to either name the verilog files in accordance with the chosen block name internal to the model? Or if the files are going to be called "...generic", could they maintain a generic port naming convention?
댓글 수: 0
답변 (1개)
Kiran Kintali
2021년 5월 16일
It looks like you are using 'ClockInputs', 'Multiple' option in HDL Coder that leads to generation of logic with Multiple Clocks. See the attached example with different rates in the model and generated code using multiple clocks option.
>> makehdl('MultipleClocksSqrt/DUT1', 'ClockInputs', 'Multiple')
Look for the following comment in the top of the generate DUT file explaining Clock Naming in Module_A, _B and _C.vhd files.
Please share your RAM model and we can take a look at your file reuse issue.
HDL Coder avoids name collisions with a single code generation process. If you have name collisions between code generation for two different DUTs or different Models, consider use of ModulePrefix parameter during code generation.
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!