Chapter 12 Hardware Master Sun Wei

"When I saw that small building for the first time, I actually resisted in my heart", many years later, Sun Wei always started with this sentence when he recalled the first time he saw Wang Yinan.

"Why resist? And then, what happened next? This is a curious female reporter, since Wang Yinan, Li Wenjing won the Nobel Prize, interviewing him and his team has become a compulsory course for major media, take the formal way, this reporter is estimated to be in line with the Year of the Monkey Ma Yue, relying on good looks, this female reporter has found a unique way, specializing in Sun Wei, and has also become a big name in Penguin News.

"At that time, I had just come back from abroad, and I went to study in the United States from Mizuki University for three years, and I don't brag about it, I am a good hand in integrated circuit design, originally, SMIC, and Baodian of Baodao have given me an offer that is difficult to refuse, and I am going to go to the magic capital to see these two companies in the imperial capital for a few days."

"Our family is a world friend with Mr. Li Shiyao, I grew up in the same courtyard with his daughter, which is considered to be a small one, and then she stayed at N University to study, and I went to Mizuki University."

"Yes, his daughter is Li Wenjing, and she is also a Nobel Prize winner"

"I really don't have anything with Li Wenjing, although we grew up together since childhood, we can be regarded as childhood sweethearts, you know, it's hard for something to happen when the two of them are too familiar, I never treat her as a girl."

"Later, I heard that Li Wenjing was engaged in some advanced mathematics",

"That's right, it's Gödel or something, I don't really understand what she's doing, and I'm mainly responsible for some logical implementation later."

"Li Wenjing found me and said that they needed one to make FPGAs, and wanted me to talk to Wang Yinan, I had to give her this face, so I went."

"At that time, I thought, no matter what Wang Yinan said, I wouldn't go to their scumbag company to wade into troubled waters."

"So life is always full of accidents"

Sun Wei called a tuk-tuk car, from the hotel to Jixiang Village's Rong and Technology, drove for more than an hour, when standing at the gate of the small courtyard, Sun Wei was tired and hungry, he decided to ignore Li Wenjing's face, and Wang Yinan chatted a few words and left, just Li Wenjing was called by the unit to lobby, and he would not come for a while.

The first time he saw Wang Yinan, Sun Wei felt that this man was so young, Wang Yinan was not tall, about 175, wearing glasses, with clear eyebrows and beautiful eyes, Sun Wei admitted that he was still a little handsome. Sun Wei was most impressed by Wang Yinan's eyes, which were particularly confident, but full of humility. It seems to know everything well, and it seems to be full of inquiry and curiosity about everything. Anyway, Sun Wei never thought that these two particularly contradictory qualities would appear in the eyes of the same person.

And when Wang Yinan saw Sun Wei for the first time, he felt that this tall northern guy was not so easy to fool, and if he wanted to let this person with real skills stay, it would be impossible not to take out some dry goods.

Sun Wei didn't prepare anything like resume, he was just talking to Wang Yinan. Of course, out of politeness, Sun Wei still made a simple self-introduction.

"Graduated from the Department of Electronic Science of Mizuki University with a master's degree in integrated circuits, and was sent to Standford University to major in IC design, and returned to China after obtaining a doctorate."

"He has published more than 10 papers in IEEE, and the number of citations is basically more than 100."

Well, Wang Yinan felt that in front of Sun Wei, his identity as an undergraduate at N University was a scumbag.

"My area of expertise is hardware H265 encoding and decoding, as well as fast algorithms for convolutional networks used by AI, and I have published several papers on H265 encoding and decoding in IEEE."

"By the way, do you know H265?"

Wang Yinan almost didn't have a mouthful of old blood spurting out, damn it, I don't even know about H265, I just found a piece of tofu and killed it, so as not to be embarrassed here.

Turning on the computer, Wang Yinan searched for IEEE articles, and sure enough, there were many articles signed by WeiSun from Stanford, including one on H265 hardware implementation and optimization, which was also listed as one of the best video compression papers last year and was widely cited. Wang Yinan has a little dabbling in FPGA, he probably read the article, and it is indeed very insightful, but with Wang Yinan's level in this regard, it can only be said that Sun Wei must be better than himself, and it is difficult to say how clever he is.

Sun Wei is not even interested in knowing the general research direction of Rong and Technology, obviously, it is impossible to fool him today.

"In that case, don't blame me for making a big move," Wang Yinan thought.

"Then I'll take my leave", Sun Wei didn't seem to have any interest in wasting time further.

"Okay, leave me an email address, I'll give you an email if you want to ask for advice when you go back", Sun Wei left his email address a little reluctantly, as if he felt that it was too much.

"Sample, you wait," Wang Yinan thought in his heart.

Early the next morning, Wang Yinan summoned Li Wenjing and two of his software developers, one named Li Fei and the other Zhao Tiancheng, to have a small meeting.

"Guys, we've got work to do."

He brought up Sun Wei's paper on last year's best H265, in which a new method was used to optimize the macroblock search and selection of H265 to make it easier to implement in FPGA hardware circuits. To put it simply, H265 is an ultra-high-efficiency video compression algorithm, which can automatically select 4x4, 8x8 or even 4x16, 4x32 and other rectangles according to the locality of moving objects in the video, divide the image into blocks, and then look for changes and connections between each block, so as to compress the moving image, to get better compression efficiency, the search and matching of blocks requires a lot of computing power.

Wang Yinan said, "We are now carrying out Gödel modeling for H265, so that we can find the defects of Sun Wei's algorithm and improve it."

"Wen Jing, this basic mathematical model is the distribution of a two-dimensional image in the time domain, and you are responsible for abstracting the definition of macroblocks, as well as the constraints of parameter selection and so on."

"No problem, it's easy."

"I was responsible for modeling the FPGA implementation part of Wei Sun's article so that the Gödel system could recognize the basic elements of the FPGA."

"Li Fei, you are responsible for writing an import module for video streams."

"Zhao Tiancheng, according to the prevailing video quality evaluation standards, I don't care if you write one yourself or find an open source project, anyway, you can quantitatively evaluate the encoded video quality, OK?"

"Do you understand, all the work must be completed within three days, otherwise, Li Fei, you will be responsible for welding the board in the future, and Zhao Tiancheng will go to see the waterwheel."

"It's done, all double pay this month!"

Wang Yinan and they started a crazy three-day sprint, for their team, this kind of convulsions from time to time is already the norm, of course, usually Wang Yinan has no management, everyone has something to do to come to the company to go around, order a mao, nothing is okay not to come. Wang Yinan's only requirement is that he can't drop the chain at a critical time. Fortunately, the next day, Zhao Keqin heard Li Wenjing say that they were in a retreat sprint, and took the initiative to join in, he had studied video compression related algorithms before, otherwise, Li Fei and Zhao Tiancheng had no video-related experience, which would definitely be delayed.

On the third day, Sun Wei called Li Wenjing and said that he was going to go to the magic capital, but Li Wenjing asked him to postpone it for a day, saying that he had to practice it for many years.

Finally, on the evening of the third day, all the preparations were completed.

Wang Yinan started the Gödel system, and mathematically, the video compression problem, that is, the H265 encoding, was reduced to a lossy transformation of a two-dimensional matrix (two-dimensional image) in the time domain.

Sun Wei's work is actually to propose a transformation model that can be easily described in VHDL language and implemented on FPGA.

In the past few days, Wang Yinan's work is to formalize this problem and Sun Wei's solution and turn it into a mathematical formal system.

The entire problem domain and Sun Wei's paper were entered into the Gödel system, and the long computation began.

"Hey, it's really the bottleneck of computing power, and now you have to calculate time in hours at every turn."

"You guys go and rest first, I'll be alone", Wang Yinan drove Li Wenjing and the others back, and took a nap in the chair by himself.

At four o'clock in the morning, the terminal emitted a beep, which suddenly woke Wang Yinan from his sleep.

"Aha, it's finally out, let me see", Wang Yinan ran to the bathroom and wiped his face with cold water.

"It turns out that Sun Wei's algorithm still has so many things that can be improved, here, if you remove the deletion link and directly use the previous data, you can not only improve the efficiency by 15%, but also improve the quality of the image."

"And here, the design of this FPGA is problematic, which will cause all the computing cores to compete for the same lock when concurrency, reducing efficiency."

"And here, here"

。。。

The Gödel system found 17 defects in Sun Wei's algorithm, and as long as the first five were corrected, the efficiency of the final hardware would be increased by 80%.

Wang Yinan copied the five defects and improvement plans, as well as the results of the final efficiency increase of 80%, and sent them to Sun Wei's mailbox.

Then, he just lay on the sofa and fell asleep, after all, he worked for seventy-two hours in a row, and the iron man couldn't stay up.

Wang Yinan was woken up by the doorbell, he opened the door in a daze, and felt a big man from the north pounce and grab his hand.

"How did you do it, you must have hired a special master, where is he?"

Sun Wei dragged Wang Yinan and rushed in, looking around for the mysterious master. Wang Yinan shook off his hand, "Get out, I'm not good at this."

"Want to know where the mysterious master is?" , signed this first.

Wang Yinan took out the confidentiality agreement, Sun Wei only glanced at it, and signed his name, "Even if you sell me, I will admit it."

Wang Yinan took Sun Wei to the basement, looking at the four cabinets in front of him, Sun Wei's mouth was even bigger than Zhang Qi, and he was more aware of what such a powerful AI meant than Zhang Qi.

"At present, the system cannot be replicated, and can only be upgraded on this only set of systems, and we want you to come, which is to improve his computing limit from the hardware...

Without waiting for Wang Yinan to finish speaking, Sun Wei directly interrupted him, "To hell with SMIC, if you can improve this system, even if you drive me, I won't leave."

"By the way, boss, how much money do you give me every month, but the magic capital gives me a monthly salary of 100,000 soft girl coins."

"What, 10,000, boss, you can't do this, 10,000 soft sister coins in the imperial capital will starve to death"

"Boss, do you have shares?"

。。。

Wang Yinan walked into the elevator speechlessly, and on the side, it was Sun Wei, who was chattering.