```la_clock = 0; for(int i= 0; i < 164; i++) { ...
# caravel
m
Copy code
la_clock = 0;
for(int i= 0; i < 164; i++) {
    la_reset = (i == 1) ? 1 : 0;
	reg_la0_data  = (0x00000000 | la_dat_i[i]) | 
	                (0x00000000 | la_wr_en[i] << 29) | 
	                (0x00000000 | la_reset << 30) |
	                (0x00000000 | la_clock << 31) ;
    la_clock = (la_clock + 1) % 2;
}
👍 1
e
How to make the writing/assigning to reg_la0 faster? or how to make the la_clock, say 20Mhz? thanks
m
La and wishbone are very slow, they take many clock cycles. I haven't tested vexrisc but it was hundreds of cycles for picorv
👍 1