File Reading and Writing in Verilog || explanation with working Verilog code || very important

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • File Reading and Writing in Verilog || explanation with working Verilog code
    This verilog tutorial explains how data can be read from file and data can be written into a file using verilog code. I have explained the file reading and writing concepts with working Verilog code in this verilog tutorial. File reading and writing is a very important concept in verilog design.
    Thank you for watching this verilog tutorial.
    My email ID - email2vesystem@gmail.com
    Please, don't send me mail asking for content(PPT,PDF) or any verilog code. For any other help you are most welcome.
    if you like the tutorial then you can press like button 👍 and subscribe 🔔 this channel.
    please share this verilog tutorial with your friends.
    Thanks.
    #componentbyte

ความคิดเห็น • 26

  • @dance_hoofers7757
    @dance_hoofers7757 3 ปีที่แล้ว +2

    So deep and clear... An average student can learn from your videos.. Jaise hi koi question aata hai dimag mein you already explained that in your video.. Really nice work.. 😇😇

    • @ComponentByte
      @ComponentByte  3 ปีที่แล้ว +1

      Thank you for your kind appreciation.
      I always believe in concept and not just the theory and try my best to educate myself first and then deliver the knowledge. I also appreciate negative comments so that I can rectify my mistake.

    • @dance_hoofers7757
      @dance_hoofers7757 3 ปีที่แล้ว +1

      @@ComponentByte that's the sign of real teacher.. I am learning it and just wish me all the best so that I can beat interviews..

    • @ComponentByte
      @ComponentByte  3 ปีที่แล้ว +1

      Wish you a happy learning and all the very best. Have a great future.

  • @ramapatipatra5384
    @ramapatipatra5384 2 ปีที่แล้ว +1

    Excellent sir

  • @ilieconstantin232
    @ilieconstantin232 ปีที่แล้ว

    hello, i have a homework to do, i have a mips32 program, and i added a bcd module and display_driver module, to show my name on the 7 segments display, but the i ideea of the homework is to use .coe file to make that, can you help me?

  • @14-ds-nagamanicholleti60
    @14-ds-nagamanicholleti60 2 ปีที่แล้ว +1

    Hi sir, Can we read values other than files in Verilog? I mean as we are using scanf() in C Language

    • @ComponentByte
      @ComponentByte  2 ปีที่แล้ว +1

      You mean you want to read letters or some sentence like scanf()
      If yes then it is only possible at simulation level and not at synthesis level because reading a sentence in verilog doesn't generate hardware and verilog is a hardware description language.
      $display and $monitor() in verilog mimic scanf () behaviour

    • @14-ds-nagamanicholleti60
      @14-ds-nagamanicholleti60 2 ปีที่แล้ว

      @@ComponentByte ok sir.. Thank you

  • @mdtutorial7240
    @mdtutorial7240 3 ปีที่แล้ว +1

    Thanks it's working fine for binary input as well as hexadecimal input.but what about decimal number input...??? I want to read my text file which is in decimal number but these commands are not working for me... please help.

    • @ComponentByte
      @ComponentByte  3 ปีที่แล้ว +1

      To my knowledge it won't read decimal. It can only read hex and binary as no construct for decimal like b- binary, h- hex
      Please change decimal to binary or hex using tools like matlab and then read it. Thanks.

    • @mdtutorial7240
      @mdtutorial7240 3 ปีที่แล้ว

      @@ComponentByte fscanf comand can be use or not....???

  • @ramapatipatra5384
    @ramapatipatra5384 2 ปีที่แล้ว

    Hello sir, first of all thanks a lot for discussing this memory read and write operation such a great way, but in the memory writing case I am writing the same code as you, but it writes 0 to 126 instead of 0 to 127, could please tell where I am making the mistake?

    • @ComponentByte
      @ComponentByte  2 ปีที่แล้ว

      My email id - email2vesystem@gmail.com
      Please send me your code, if you can, if you have not resolved it

  • @shubhamsrivastava7492
    @shubhamsrivastava7492 3 ปีที่แล้ว

    is initial block synthesizable?

  • @VLSI_ADDA
    @VLSI_ADDA 2 ปีที่แล้ว

    Hello sir can you tell me how to write a code for Asymmetric fifo if i am having a 32 bit input data and i want a 3 bit output from the fifo buffer how can i do that. please reply sir

    • @ComponentByte
      @ComponentByte  2 ปีที่แล้ว

      Hope You might have gone through this link
      www.fpga4student.com/2017/01/verilog-code-for-fifo-memory.html?m=1
      www.google.com/url?q=www.sunburst-design.com/papers/CummingsSNUG2002SJ_FIFO1.pdf&sa=U&ved=2ahUKEwiJnp-Xv9j2AhV5zTgGHV0qDM4QFnoECAQQAg&usg=AOvVaw1PAcfsr3NZe4MfEXADosoi

  • @anandchitchat6411
    @anandchitchat6411 ปีที่แล้ว

    These codes are not working in Xiling Vivado.

    • @ComponentByte
      @ComponentByte  ปีที่แล้ว

      It should work. Please check what is it showing on xilinx simulator

    • @anandchitchat6411
      @anandchitchat6411 ปีที่แล้ว

      @@ComponentByte Thank you for instant reply .I tried both the code given in this video . If possible please check . Really struggling for my project"Calcuator " which says * I've to read the data from file using fopen and perform calculation using FSM and data can include maximum of 3 paranthesis.i.e() * If you can guide me it will be very helpful as at initial stage only(i.e reading the data) .I'm not getting the result so that I can move further do FSM logic to do calculation. *Do you have any mailid so that I can contact, I've to submit by tommorrow morning* . Please Help. Thank you again for Instant reply.

  • @kranthik910
    @kranthik910 3 ปีที่แล้ว

    Simtime=%g what g means

    • @ComponentByte
      @ComponentByte  3 ปีที่แล้ว

      Floating point in general format.
      g means general format