0

I was going through a piece of verilog code and came accross the following

abet_val<=strt?{{12 -1{1'b0}}, write_rly}:{{12 -1{1'b0}}, 1'b1};

what does the stuff inside the curly braces "{}" mean? Please help me out.

RoyOneMillion
  • 225
  • 2
  • 10

1 Answers1

0

it is a mux between {11'b0}, write_rly and 12'b1 . when strt is a one you pick the first option and when it is a zero you get the second output

{} these are the concatenation operator meaning you combine them to make one number

alex_milhouse
  • 891
  • 1
  • 13
  • 31