随笔分类 - FPGA
摘要:背景:华中科技大学 电测综合实验 主要功能:Basys2开发板外接一个扬声器(或无源蜂鸣器也可)实现电子琴和音乐播放器的功能。其中由于开发板上只有4个按键,所以电子琴功能只做了4个音调,分别对应于4个轻触开关。音乐播放器功能需要根据挑选出来的乐谱,人工翻译为代码中对应的音调代码,然后输入到代码的状态
阅读全文
摘要:移位寄存器实现Verilog代码: `timescale 1ns / 1ps module add( input clk, input reset, input [1:0] s, input dl, input dr, input [3:0] d, output reg [3:0] q ); alw
阅读全文