--- Log opened Mon Apr 03 00:00:12 2017 | ||
olofk_web | shorne_: Thanks for the fixes to adv_debug_sys | 03:12 |
---|---|---|
olofk_web | Just a comment though, after checking the IRC back logs | 03:12 |
olofk_web | The way to set a custom define for a system building with Quartus is to add a TCL file that uses the Altera syntax to set it | 03:13 |
olofk_web | Then you add the file to a fileset and set file_type=tclSource (and it's recommended also to set usage = quartus) | 03:13 |
olofk_web | That way FuseSoC will source the tcl file when creating the Quartus project file | 03:13 |
olofk_web | But it should also be possible to set this on the command-line. Some backends support this now, but not quartus yet. I'll fix that | 03:14 |
olofk_web | So, doing it the TCL way is more for static values that you don't want to change between builds. Doing it with a CLI option is more useful when you want to change things easy at build time | 03:15 |
olofk_web | The syntax for setting a verilog define in quartus is set_global_assignment -name VERILOG_MACRO "$KEY=$VALUE" | 03:16 |
olofk_web | For your $KEY/$VALUE | 03:16 |
olofk_web | shorne_: Pushed a patch now to handle setting defines from CLI with quartus now | 03:51 |
olofk_web | It requires you to define a parameter section for each define | 03:51 |
shorne_ | olofk_web: thanks. I wanted to use for adv_debug_sys, but I think using parameters on the verilog modules makes more sense here | 06:34 |
olofk_web | shorne_: Definitely. I've been trying to get rid of defines when possible. Cleaned up a few of the old cores from OpenCores | 06:39 |
olofk_web | But it can be good to know if you need to set a define at some point | 06:40 |
shorne_ | olofk_web: yeah, I will have something to reference next time. | 07:31 |
-!- shorne_ is now known as shorne | 07:31 | |
shorne | olofk_web: I never really got into the tcl scripting stuff before. (though I would like to... since it seems a lot of rtl workflow centers around that) | 07:33 |
shorne | but lately I am hacking on openocd which has "jim tcl" at its core | 07:33 |
shorne | its pretty basic actually | 07:33 |
olofk_web | Oh god! STAY AWAY FROM TCL!!!!!!! | 07:54 |
olofk_web | It's an absolute crap language for these sort of things. It's a complete mystery how it ended up being the preferred EDA scripting language. It's so bad, that most solutions seem to generate TCL from some other language nowadays | 07:55 |
olofk_web | But otoh, as usual, it's the tool that's available if we wnat to work on EDA, so I guess it makes sense to know it | 07:56 |
olofk_web | Just saying that you "would like to" know TCL only comes from a person who hasn't experienced it enough yet :) | 07:56 |
olofk_web | Hmm...any good advice on a verilog construct that forces synthesis/simulator to exit? | 08:01 |
olofk_web | I want to break when an invalid parameter value is found | 08:02 |
olofk_web | For sim, I can use $finish, but that doesn't help for synthesis | 08:02 |
olofk_web | I've used $error, but I realize now that this is really a SystemVerilog keyword, so not supported by some tools | 08:02 |
olofk_web | This is what it looks like today => initial if(FIFO_AW == 0) $error("%m : Error: FIFO_AW must be > 0"); | 08:03 |
ZipCPU | How about a different approach: localparam LCL_FIFO_AW = (FIFO_AW < 2) ? 2 : FIFO_AW; ? | 08:11 |
olofk_web | Good idea. I could still display a warning that it's set to minimum allowed | 08:21 |
shorne | olofk_web: good to know I should avoid tcl... fusesoc works well enough for me now anyway | 09:12 |
olofk_web | Time to run | 10:11 |
mafm | hey | 15:03 |
mafm | any gsoc candidates to port GCC from scratch? :) | 15:03 |
shorne | fyi, I posted openrisc multicore patches here for openocd | 17:21 |
shorne | https://github.com/stffrdhrn/openocd/commits/or1k-multicore | 17:21 |
shorne | need to make it support "smp" (meaning reset,halt etc happen on all cores not just one) | 17:22 |
--- Log closed Tue Apr 04 00:00:14 2017 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!