Thanks for your explanation.

On Tue, Aug 22, 2023 at 10:36 AM Yasir Özçalık <simultaneou...@gmail.com>
wrote:

> You need to use it inside a initial begin block.
>
> initial begin
>   $display("This ends with a new line ");
> end
>
> If you write like this, it will work. But don't forget that the $display
> function is only used for simulation, but not synthesis. Therefore; it is
> best to use it in testbench files.
>
> Kind Regards,
> Yasir
>
> sp <stackprogra...@gmail.com>, 22 Ağu 2023 Sal, 08:48 tarihinde şunu
> yazdı:
>
>> Thanks very much, simulation test bench sv file works but when I used
>> $display in the custom rfnoc block verilog module it have an error
>> I attached the source file of custom block
>>
>> First problem:
>> I have this error when I used $diplay system verilog (system task)
>>
>> ERROR: [VRFC 10-4982] syntax error near '$display'
>> [/home/sp/rfnoc-test/rfnoc/fpga/rfnoc_block_gain/rfnoc_block_gain.v:222]
>> ERROR: [VRFC 10-2865] module 'rfnoc_block_gain' ignored due to previous
>> errors
>> [/home/sp/rfnoc-test/rfnoc/fpga/rfnoc_block_gain/rfnoc_block_gain.v:40]
>>
>>
>>
>>
>> On Tue, Aug 22, 2023 at 9:45 AM Yasir Özçalık <simultaneou...@gmail.com>
>> wrote:
>>
>>> Just to be clear, you mean $display function, right? If so, I have used
>>> it in my custom rfnoc block for simulation and it worked flawlessly. Can
>>> you give a little more detail about your code?
>>>
>>> sp <stackprogra...@gmail.com>, 22 Ağu 2023 Sal, 08:01 tarihinde şunu
>>> yazdı:
>>>
>>>> why $diplay function is not work in my custom rfnoc block but it work
>>>> in other rfnoc blocks on usrp,
>>>> How can solve my problem?
>>>> I know that with rfnoc framework $diplay should be work in rfnoc blocks
>>>> but....
>>>> every thing is same other block only name of block is diff...
>>>> thanks in advance
>>>> _______________________________________________
>>>> USRP-users mailing list -- usrp-users@lists.ettus.com
>>>> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>>>>
>>>
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to