Full record of HDLBits questions
Procedures
Before the beginning of this section, common statements are divided into comprehensible and non comprehensible. In short, comprehensible is the statement that can form a hardware circuit, while non comprehensible is the statement that can only be used for simulation.
categorysentenceIntegrabilityProcedure statementinitiala ...
Posted by daveoliveruk on Tue, 12 Oct 2021 13:19:42 -0700
Introduction to ARM APB bus
testing software: ISE14.7 author: Rose Island
Introduction to APB bus
APB bus
APB(Advanced Peripheral Bus) follows AMBA (Advanced Microcontroller Bus Architecture Protocol). Signal conversion is related to the rising edge of the clock. Each read-write transmission shall be at least two cycles. Read data and write data cannot occur at the s ...
Posted by gum1982 on Thu, 30 Sep 2021 21:26:00 -0700
HDLBits Chapter 11 exercises and answers
1. Four bit binary counter
Build a 4-bit binary counter from 0 to 15 with a period of 16. Synchronous reset, reset should reset the counter to 0. Code implementation:
module top_module (
input clk,
input reset, // Synchronous active-high reset
output [3:0] q);
always@(posedge clk) begin
if(!reset)
...
Posted by eojlin on Thu, 23 Sep 2021 01:15:00 -0700
HDLBits Chapter 5 exercises and answers
1. Ternary conditional operator
verilog has a ternary conditional operator (?:), just like C.
(condition ? if_true : if_false)
This can be used to select one of two values based on the condition on a line (multiplexer!) without using if then in the combined always block.
For example:
(0 ? 3 : 5) // This is 5 because the condition ...
Posted by falcon8253 on Sun, 19 Sep 2021 13:54:17 -0700
FIR filter coefficient overload
1, Implementation method:
Multiple groups of coefficients are placed in the coe file at one time, and then the coefficients of different groups are loaded by configuring the AXI interface. The advantage is that the implementation is relatively simple, but the disadvantage is that although the coefficients can be switched, they can only be ...
Posted by Adeus on Sat, 18 Sep 2021 20:26:25 -0700
Encoding of HDB3 ② (implemented in Verilog language) 2021-9-12
preface
In the last introduction to the coding and decoding of hdb3, the coding rules of hdb3 are briefly introduced, and the simulation experiments are carried out with MATLAB. Interested friends can go and have a look. Encoding and decoding of HDB3 ① (realized by MATLAB) September 11, 2021 . After the simulation experiment, it will be ...
Posted by Cruzado_Mainfrm on Mon, 13 Sep 2021 13:37:45 -0700
After brushing this set of questions, I found that Verilog is so simple - HDLBits answer series
Write in front
Write a new pit: recommend a very good website for practicing Verilog. There are one or two hundred questions, which basically covers all aspects of Verilog grammar. It is a very good introductory learning website. Website connection: HDLBits
The questions are all done by ourselves. They are the correct answers that have been v ...
Posted by nafarius1357 on Wed, 01 Sep 2021 21:35:04 -0700
Verilog on-board experiment: multifunctional counter
catalog
Experimental requirements
Step 1:
A add and subtract counter is designed, which is combined with binary to BCD decoder and alternating display control circuit in Experiment 1
As shown in the figure:
Counter input: Clk,Up,Down,Rst,Enable
8bits output: Cnt7~Cnt0
Rst=1, the counter is cleared ...
Posted by bapan on Sun, 28 Jun 2020 21:43:02 -0700
Verilog Preliminary Tutorial Verilog Modules and Ports
Bowen catalog
Write before
text
Modular
port
port type
Verilog 1995 vs. Verilog 2001
Reference material
Make a friend
Write before
The first five articles have already explained Verilog's bits and pieces of knowledge, starting with modules.
Modular design is the core of Verilog and digital ...
Posted by newzub on Fri, 26 Jun 2020 18:18:05 -0700
Verilog Simple Design for Seven Segments of Digital Tube Display
Bowen catalog
Write before
text
Principle of seven-segment digital tube
Seven Segments Digital Tube Decoder Table
verilog design for single seven-segment digital tube display
Dynamic Scan Display with Multiple Digital Tubes
Reference material
Make a friend
Write before
As a basic knowledge tu ...
Posted by cjliu42 on Sat, 20 Jun 2020 17:56:21 -0700