Closed buddynohair closed 4 years ago
Hello,
Thank you for trying OpenFPGA. The user_defined_templated.v
is intentionally created with no logic functionality inside.
It aims to help engineers to check what is the port sequence required by top-level Verilog netlists (when you use implicit port mapping).
As you define these circuit models to be external, we expect you use the user_defined_templated.v
as a reference to check the port sequence in your Verilog modules.
You can find detailed documentation here:
Hello, really thank you for your prompt reply. So i get one more question. If i want to generate a customized module(instance) under the OpenFPGA framework , is it possible to achieve that or i have to write it manually in the user_defined_templated.v .
Hello, If you have a customized module to be used by OpenFPGA, as you defined in your architecture file shown in the screenshot 2, you have to provide your Verilog modules. Since you specify an external netlist in the circuit model definition, OpenFPGA will not auto-generate these files. There are several ways:
verilog_netlist
or spice_netlist
.verilog_netlist
or spice_netlist
.you specify the standard cell library (a Verilog netlist) in the circuit model definition by using verilog_netlist
or spice_netlist
.
You can see our example
Hello, Im sorry. i didn't understand this step "specify the file in the circuit model definition by using verilog_netlist or spice_netlist." correctly . What should i actually do with this step?
i used your 1bit Adder for example. you can see through the screenshot, i have already filled it in the architecture xml.file, but there's still no logic function.
Hello, It is basically similar to what you show in the screenshot. You need to specify the full path to your Verilog netlists because there are external netlists (OpenFPGA will not generate them). This is an example.
As this is defined as an external netlist, OpenFPGA will not generate any content related to this circuit model as our documentation clarifies. It is expected that the user_defined_template.v
does not include logic function, other than an entity.
It means that you must modify this netlist upon your own needs before using it in OpenFPGA.
Hello, i got it. Thank you for your help.
Hi, i got a new problem.
After i use commend "python3 openfpga_flow/scripts/run_fpga_task.py openfpga_shell/full_testbench/configuration_chain" to generate the verilog code, i find the module in the file "user_defined_templates.v" is not defined (Screenshot 1), although it was already described in the architecture xml.file. (Screenshot 2).