Forum Discussion

junyoung2's avatar
junyoung2
Icon for New Contributor rankNew Contributor
1 year ago

wire assignment in verilog

Hello, I have a question while I was writing the code. I made a code wire [15:0] A; and I declared input B; and I declared this signal as assign A = {8{B}};. When I declared this, the top 8 bits of signal A would be filled with 0, so why would it be filled with 0? Shouldn't it be filled with z or x??

24 Replies

  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    Did you manage to check your email? If yes, please help to reply in the email for the confirmation.