Changeset 158
- Timestamp:
- Jan 5, 2012, 3:32:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/MultiChannelUSB/filter.v
r156 r158 10 10 ); 11 11 12 localparam widthr = width + 7;12 localparam widthr = width + 8; 13 13 /* 14 14 5-bit LFSR with additional bits to keep track of previous values 15 15 */ 16 reg [ 23:0] int_lfsr_reg, int_lfsr_next;16 reg [31:0] int_lfsr_reg, int_lfsr_next; 17 17 18 18 reg int_wren_reg, int_wren_next; … … 96 96 .sel(int_chan_next), 97 97 .data({ 98 1'b1, int_lfsr_reg[ 16+4:16],99 1'b0, int_lfsr_reg[ 4+4:4]}),98 1'b1, int_lfsr_reg[20+4:20], 99 1'b0, int_lfsr_reg[5+4:5]}), 100 100 .result(int_addr_wire)); 101 101 … … 117 117 int_data_reg[i] <= {(size*widthr){1'b0}}; 118 118 end 119 int_lfsr_reg <= 24'd0;119 int_lfsr_reg <= 32'd0; 120 120 end 121 121 else … … 180 180 int_flag_next = 1'b0; 181 181 int_chan_next = 1'b0; 182 int_lfsr_next = 24'h0722BD;182 int_lfsr_next = 32'h0722BDA6; 183 183 int_case_next = 'd2; 184 184 end … … 200 200 acc_data_next[1] = int_data_reg[0]; 201 201 202 int_lfsr_next = {int_lfsr_reg[ 22:0], int_lfsr_reg[2] ~^ int_lfsr_reg[4]};202 int_lfsr_next = {int_lfsr_reg[30:0], int_lfsr_reg[2] ~^ int_lfsr_reg[4]}; 203 203 204 204 int_case_next = 'd3;
Note:
See TracChangeset
for help on using the changeset viewer.