Created
May 17, 2018 18:07
-
-
Save olofk/3f4c7fe2eede3f89eb11cff4e5d71b22 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
| `default_nettype none | |
| module m(output wire a, input wire b); | |
| assign `A = b; | |
| 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
| verilog_defines -DA=a | |
| read_verilog define_test.v | |
| synth_ice40 -top m -blif m.blif |
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
| yosys -p 'verilog_defines -DA=a; synth_ice40 -top m -blif m.blif' define_test.v |
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
| yosys -s define_test.ys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment