RISC CPU design based on Verilog

Abstract: in fact, in the design of a CPU, each sub module is relatively basic and simple, but the combined overall architecture will be more complex, whether it is timing path, data path and control path. Here, we mainly introduce the sub modules of the whole microarchitecture in detail. 1. PC fetch, PC branch, instruction jump and L2 stack ...

Posted by Dujo on Sun, 10 Oct 2021 04:17:27 +0200

HDLBits Chapter 10 exercises and answers

1. D trigger definition: D flip-flop is an information storage device with memory function and two stable states. The flip-flop has two stable states, namely "0" and "1". Under the action of certain external signals, it can flip from one stable state to another. The edge triggered D flip-flop is explained here. The D f ...

Posted by dancer on Wed, 22 Sep 2021 06:41:34 +0200

HDLbits question brushing series 2-Verilog/Procedure & More features

  summary This section mainly exercises the basic grammar of verilog. Schematic diagram + code + simulation screenshot Alwaysblock1 There are two types of composite awlays modules that can be integrated: always @(*); The variable processed inside is reg, and the overall function is equivalent to the assign statement. The assign state ...

Posted by Skyphoxx on Mon, 20 Sep 2021 08:37:55 +0200

Verilog grammar learning notes 1 (combined with HDLBits question brushing website)

Getting Start In a digital circuit, 1 corresponds to a high-level signal and 0 corresponds to a low-level signal. Verilog Language Basic The keyword assign is used for continuous assignment assign left_side = right_side NOT gate, logic negates the symbol!, Bitwise inverse sign~ AND gate, logic and symbol & &, bitwise and symbol& ...

Posted by keyboard on Sat, 18 Sep 2021 04:16:56 +0200

Verilog implements SPI protocol

There are many tutorials about SPI. Here is a summary of my study of SPI protocol. What is SPI? SPI is the abbreviation of Serial Peripheral Interface Bus, which means serial peripheral interface. It is a synchronous serial communication interface standard for short distance communication, mainly used in embedded system. This in ...

Posted by rane500 on Thu, 25 Jun 2020 05:54:50 +0200

Asynchronous FIFO from FIFO Design

Bowen catalog Write before text Synchronized FIFO Review $clog2() system function use Comprehensive Attribute Control Resource Utilization Asynchronous FIFO design Review of FIFO uses Review of Asynchronous FIFO Principles Asynchronous FIFO design Asynchronous FIFO simulation Reference material ...

Posted by johnny on Tue, 09 Jun 2020 02:36:04 +0200

Processing method of single pulse across clock domain

In the development and design of FPGA, many clocks are working in the same module at the same time. At the same time, the communication between signals in the clock domain must be ensured. It is necessary to deal with the timing problem, that is, the establishment and holding time of signals.   r_PULSE_O <= { r_PULSE_O[1:0] , r_PULSE_I} ;    ...

Posted by nthomp on Mon, 16 Dec 2019 21:46:48 +0100

#Problem solving Report

Problem solving Report cf A Remove all existing ones, and take the maximum value + 1 for the rest #include <bits/stdc++.h> #define int long long using namespace std; signed main() { int T; cin>>T; while(T--) { int n,s,t; cin>>n>>s>>t; int k=s+t-n; s-=k,t-=k; int a ...

Posted by cbesh2 on Tue, 29 Oct 2019 20:06:05 +0100

VCS simulation course lab2

The main exercise in lab2 is to use ucli. The structure diagram of the adder of lab2 is shown in the figure below: Bugs have been embedded in the tutorial files this time. What the tutorial does is the whole process of de bug ging. PartA and PartB use the methods of modifying source files and usi ...

Posted by jcanker on Sat, 26 Oct 2019 06:05:37 +0200

[Linux] Learn Linux step by step - objdump command (254)

0 directory Article directory 0 directory 01. Overview of commands 02. Command format 03. Common Options 04. Reference examples 5 appendix 01. Overview of commands The objdump command is a gcc tool consisting of viewing the target file or executable target file. objdump is a bit like a Quick-V ...

Posted by tejama on Mon, 23 Sep 2019 12:00:04 +0200