Тёмный

Shift Registers 

John's Basement
Подписаться 15 тыс.
Просмотров 1,1 тыс.
50% 1

Опубликовано:

 

30 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@aeebeecee3737
@aeebeecee3737 3 года назад
exploit shift instructions + add instructions to implement multiplication and division, right?
@JohnsBasement
@JohnsBasement 3 года назад
I probably should have mentioned that as a side note in the video. Yes! You absolutely can use shifting to multiply (and divide) by powers of 2! You can also combine it with adding to get other values. For example to multiply X by 10: X
@aeebeecee3737
@aeebeecee3737 3 года назад
@@JohnsBasement thank you very much for your reply. But how to get 3 x 5? I mean a general way.
@JohnsBasement
@JohnsBasement 3 года назад
@@aeebeecee3737 This technique is easier used to multiply by a literal. For example: X * 5 would be X += X
@aeebeecee3737
@aeebeecee3737 3 года назад
@@JohnsBasement But you cannot create special routines for every circumstance by this way right? What if a x b? how to use shift + add to implement a x b?
@JohnsBasement
@JohnsBasement 3 года назад
@@aeebeecee3737 Oh... normally a general purpose shift & add function is used to do the multiplication in binary. A quick google search got me here and it looks like a good general description of it: byjus.com/maths/binary-multiplication/ It is just doing it the way we learn in grade school.. but since you only have to multiply by either 1 or 0, it is trivial. You implement it using a loop that asks if the low-bit of the multiplier is 1 and add the multiplicand to the zero-initialized product and then shift the multiplicand to the left 1 bit and the multiplier to the right one bit each time through the loop until the multiplier becomes zero.
Далее
An Introduction to RV32I Interrupts and Traps
50:19
Просмотров 8 тыс.
Basic Shift Registers
14:18
Просмотров 42 тыс.
МЖ. Может, папа - ты? 16.02.2023
40:03
Просмотров 230 тыс.
The world's worst video card?
32:47
Просмотров 6 млн
An Introduction to VGA Signal Timing
1:03:27
Просмотров 1,5 тыс.
How Shift Registers Work - The Learning Circuit
10:44
Просмотров 125 тыс.
Serial In Serial Out Shift Registers
15:20
Просмотров 60 тыс.
World's worst video card? The exciting conclusion
24:23
How Do Computers Remember?
19:32
Просмотров 6 млн
HOW TRANSISTORS RUN CODE?
14:28
Просмотров 511 тыс.
FPGA #19 - A look at the iCE40 Technology Library
1:07:35
МЖ. Может, папа - ты? 16.02.2023
40:03
Просмотров 230 тыс.