alywin
alywin
全部文章
分类
归档
标签
去牛客网
登录
/
注册
alywin的博客
全部文章
(共10篇)
题解 | 使用8线-3线优先编码器Ⅰ实现16线4线优先编码器
`timescale 1ns/1ns module encoder_83( input [7:0] I , input EI , output wire [2:0] Y , output wi...
2024-02-19
3
702
题解 | #用优先编码器①实现键盘编码电路#
`timescale 1ns/1ns module encoder_0( input [8:0] I_n , output reg [3:0] Y_n ); always @(*)begin casex(I_n) ...
2024-02-02
2
191
题解 | #优先编码器Ⅰ#
`timescale 1ns/1ns module encoder_83( input [7:0] I , input EI , output [2:0] Y , output ...
2024-02-02
1
169
题解 | #4bit超前进位加法器电路#
`timescale 1ns/1ns module lca_4( input [3:0] A_in , input [3:0] B_in , input C_1 , output wire CO ,...
2024-01-21
1
174
题解 | #使用函数实现数据大小端转换#
`timescale 1ns/1ns module function_mod( input [3:0]a, input [3:0]b, output [3:0]c, output [3:0]d ); function [3:0] mod; input [3:0] a; begin ...
2024-01-19
1
211
题解 | #使用子模块实现三输入数的大小比较#
`timescale 1ns/1ns module main_mod( input clk, input rst_n, input [7:0]a, input [7:0]b, input [7:0]c, output [7:0]d ); wire [7:0] e ; reg [7...
2024-01-18
1
194
题解 | #使用generate…for语句简化代码#
`timescale 1ns/1ns module gen_for_module( input [7:0] data_in, output [7:0] data_out ); genvar j; generate for(j = 0;j < 8;j = j + 1) beg...
2024-01-17
1
227
题解 | #多功能数据处理器#
`timescale 1ns/1ns module data_select( input clk, input rst_n, input signed[7:0]a, input signed[7:0]b, input [1:0]select, output reg signed [8:0...
2024-01-17
1
174
题解 | #奇偶校验#
`timescale 1ns/1ns module odd_sel( input [31:0] bus, input sel, output check ); //*************code***********// assign check=(sel==1)? ^bus :~^bus ; ...
2024-01-16
0
191
题解 | #输出1#
`timescale 1ns/1ns module top_module( output one ); assign one=1; endmodule 固定的线网输出往往用assign赋值
2024-01-07
0
167