Hi Wang,

I can't answer the first question, and your third is a bit confusing. Can
you send a screenshot of the block you mean?

As for the shared_bram - this instantiates bram on hardware that is exposed
to the axi/wishbone (depending on the hardware) bus. You can write values (
*vals*) to this block via casperfpga by packing your data using "*buf =
struct.pack('>1024i', *vals)"*, and then write to the bram using*
"fpga.write('memory
device name', buf, offset)"*. To read from the bram you would do a
"*struct.unpack('>1024i',
fpga.read('memory device name',1024*4,0))"* call - the values 1024, 4 and
*i* will change depending on the depth of you bram and your data width.
Within the design, you need to have a counter on the address line to
iterate through the addresses that you are writing to, and if you are
planning on writing to the block via casperfpga then you should set *write
enable *and *data input* to 0; and if you are planning to write in over the
data line, then *write enable* should be set high with the data line tied
to wherever your values are coming from. In simulation, you can write an
array of values (for simulation only) to the "initial values" text box
within the block that opens when you double click. Then to see what the
output is doing, you can add a simulink scope block to the bram output.

Hope this helps a bit!

Morag

On Wed, Aug 31, 2022 at 7:48 AM Wang <[email protected]> wrote:

> Hello CASPER,
>
> I am currently looking at David's simulink model of PAPER correlator and
> some other people built simulink models.
>
> I met some questions in the process of looking at it.
> I have been exposed to simulink for a short time and it is not clear how
> some modules work.
>
> The first question.Double-click on the PCORE block and prompt me for a
> path. I imitate David's input, but no response. Then I check David's PCORE
> block inside also nothing, may I ask what is wrong with my operation?
>
> The second question.I see Share_BRAM blocks used a lot. I want to
> understand the details of this block, the official website does not seem to
> have Share_BRAM description. Also, I want to see what is happening to
> Share_BRAM during simulation. What blocks can I do this with?
>
> The third question.I see that a yellow block (not the same color as
> Casper-libary's block)  does not have a library link. A window appears
> after double-click :
> Function Block Parameters: block's name
> Subsystem (mask)
> Parameters
> Number of fft channels (same ad fft prompt)(2^?)
> Is it a Subsystem block? If yes, how to add the function of double click
> setting parameter?
>
> I really hope you can reply to me, I will be very grateful!
>
> BW
> Wang
>
> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/ebeaaba6-c293-4e8b-b874-6ee82b6e387an%40lists.berkeley.edu
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/ebeaaba6-c293-4e8b-b874-6ee82b6e387an%40lists.berkeley.edu?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGH-0Te8H4j7OH87VyJB%2BmEC%3DhO4aAmX_DnGG6RQKYMEUhxJAA%40mail.gmail.com.

Reply via email to