-
-
Save olofk/bf6ffb9cd51b40d6ae3273f389df52ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module t | |
| (input a, | |
| output [3:0] b); | |
| genvar i; | |
| //generate <== Should be optional for sv vlog2005 | |
| for (i=0 ; i<4 ; i=i+1) begin : genblock | |
| assign b[i] = a; | |
| end | |
| //endgenerate <== Should be optional for sv vlog2005 | |
| endmodule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| project_new qgen -overwrite | |
| set_global_assignment -name FAMILY "Cyclone V" | |
| set_global_assignment -name DEVICE 5CSXFC6D6F31C8ES | |
| set_global_assignment -name TOP_LEVEL_ENTITY t | |
| set_global_assignment -name SYSTEMVERILOG_FILE a.sv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| quartus_tcl -t qgen.tcl | |
| quartus_map qgen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment