In the below link, pseudo random generator is implemented using LFSR in “rand_num_gen.py”.
The concat operation is not working in this code. More specifically, I want to replace the Lines 41-42 with “r_next.next = concat(feedback_value, r_reg[N+1:1])”.
AttributeError is showing for the concat operation " AttributeError: ‘Call’ object has no attribute ‘starargs’ ".
Define feedback_value as a single bit vector : Signal(intbv(0)[1:0])
I think you also can cast feedback_value in concat() :
concat(intbv(feedback_value)[1:0], r_reg[N+1:1])