contributed by kk908676
Data encryption using CLZ
In order to ensure the security of data, data encryption is indispensable. This method uses CLZ as the basis of encryption and uses the XOR method.
C code
#include <stdio.h>
#include <stdint.h>
/* Counting leading zeros function */
Quiz4 of Computer Architecture (2023 Fall)
Solutions
Problem A
Take a look at the circuit diagram provided below, along with the associated delays of its components:
component
delays
$t_{AND}$
contributed by kk908676
Environment
1. Install sbt
Follow the instructions from here
2. Install Java (If you have not downloaded before)
$sudo apt install default-jdk
3. Install the dependent packages
$ sudo apt install build-essential verilator gtkwave
contributed by kk908676
Question Selection
I refer to the Find First String of 1-bits of a Given Length by CLZ from 林柏全
The following is the source code:
#include <stdint.h>
#include <stdio.h>
Jim Huang changed 2 years agoView mode Like Bookmark