Re: [casper] Use of xBlock for block scripting

2019-09-02 Thread Franco
Thanks Jack! I'll check the tutorial. Franco On Mon, Sep 2, 2019 at 12:23 PM Jack Hickish wrote: > Hi Franco, > > Here's an ancient tutorial - > https://casper.ssl.berkeley.edu/wiki/Tutorial_HDL_Black_Box > > The files referenced should be at >

Re: [casper] Use of xBlock for block scripting

2019-09-02 Thread Jack Hickish
Hi Franco, Here's an ancient tutorial - https://casper.ssl.berkeley.edu/wiki/Tutorial_HDL_Black_Box The files referenced should be at https://github.com/casper-astro/tutorials_devel/tree/b6147e29646741863b8eee9bf8366680beef2ae3/tut6 Cheers Jack On Mon, 2 Sep 2019, 9:14 am Franco, wrote: > Hi

Re: [casper] Use of xBlock for block scripting

2019-09-02 Thread Franco
Hi all, Thanks you for your replies. I actually found the same problems David and Andrew mentioned. In bigger models there is a lot of line overlaid, and you don't have control over the block size. I didn't know about mdl2m, that is a big time saver! Because most of the time I was manually

Re: [casper] Use of xBlock for block scripting

2019-08-31 Thread Andrew Martens
To add to what Dave has said. I found that having no control over the relative size and placement of the blocks when using xBlocks made it hard to see what was happening, making the design write-only and hard to debug. Generating scipts can be tedious though. The mdl2m.m script in the

Re: [casper] Use of xBlock for block scripting

2019-08-30 Thread David MacMahon
I could be wrong, but as I recall, the block diagrams created via xBlocks were (at least at the time) not very conducive to visualizing the structure of the diagrams (e.g. lots of lines/traces overlaid on top of each other). This was not a serious problem when everything worked as it should,

Re: [casper] Use of xBlock for block scripting

2019-08-30 Thread Dan Werthimer
i don't know much about xblocks, so can't add much to jack's comments, except: about a dozen years ago chris dick and others at xilinx recommended casper use xblocks, so hong chen tried it out, and ported several of the casper dsp blocks. i think it worked well, and hong chen liked xblocks, but

Re: [casper] Use of xBlock for block scripting

2019-08-30 Thread Jack Hickish
Or.. move to verilog/VHDL and use black boxes? :) On Fri, 30 Aug 2019 at 14:14, Franco wrote: > > Hi Jack, > > I see. We actually found problems when trying to script xBlocks within an > xBlock, we got some weird block connection error, but I guess that is > something solvable with some

Re: [casper] Use of xBlock for block scripting

2019-08-30 Thread Franco
Hi Jack, I see. We actually found problems when trying to script xBlocks within an xBlock, we got some weird block connection error, but I guess that is something solvable with some debugging. We'll evaluate if we stay with xBlock scripting or we switch back to standard simulink scripting.

Re: [casper] Use of xBlock for block scripting

2019-08-30 Thread Jack Hickish
Hi Franco, I don't think there's any reason not to use xblocks. Someone can correct me if I'm wrong. Several years ago there was a quest to move the whole casper library to xblocks -- https://github.com/casper-astro/xblocks_devel/ -- but it never seemed to get traction and the original libraries

[casper] Use of xBlock for block scripting

2019-08-29 Thread Franco
Dear Casperites, I've recently been playing around with the creation of block libraries and I found out about Xilinx's API for programmatic model creation (xBlock). I find it particularly convenient because you don't have to explicitly position the blocks, as the software does all the positioning