module instruction_memory(clk, instruction, addr, read, enable); //it's a rom, output 4 sequential bytes beginning at address of addr input clk; input[31:0] addr; input read, enable; output re
http://www.codebf.com/read/9549/170099
`timescale 1ns/10ps `define PERIOD 100 module cputop; reg clk; reg reset; initial begin clk = 1; system_reset; end pipelinedCPU CPU_instance(.clk(clk), .reset(rese
http://www.codebf.com/read/9549/170100
//0x4000:一般外设,0x4000,A13:0,A12:0 //0x2000:SL811,0x2000,A13:1,A12:0 //0x5000:RTL8019,0x5000,A13:0,A12:1 /*下面是对外设的各个地址进行了宏定义*/ //Read Add `define INT1Add 6'h01 `define NMIAdd
http://www.codebf.com/read/9630/173714
//*************************************************** // File Name: traffic_light_controller.v // Date: October7,2008 // author: yilong.you // yilong.you@stu.xjtu.edu.cn //******
http://www.codebf.com/read/9694/175920
`timescale 1ns/10ps module myrom(read_data,addr,read_en_); input read_en_; input[3:0]addr; output [3:0]read_data; reg [3:0]read_data; reg[3:0]mem[0:15]; initial $readmemb("my_rom_data",mem); alway
http://www.codebf.com/read/9694/175922
module clk_gen(clk); output clk; reg clk; `include"common.txt" initial begin while($time
http://www.codebf.com/read/9694/175923
module Has_Task; parameter MAXBITS=8; task Revers_Bits; input [MAXBITS-1:0]Din; output [MAXBITS-1:0]Dout;l integer k; begin for(k=0;k
http://www.codebf.com/read/9694/175924
`timescale 10ns/1ns module wave2; reg wave; parameter cycle=5; initial fork wave=0; #(cycle) wave=1; #(2*cycle) wave=0; #(3*cycle) wave=1; #(4*cycle) wave=0; #(5*cycle)
http://www.codebf.com/read/9694/175927
// // //----------------------------------------------------------------------------------- // DESCRIPTION : BIN to seven segments converter // segment encoding //
http://www.codebf.com/read/9694/175932
module countu3d5(rst, clk, up, dn, din, dout, par, carry, borrow); input rst, clk, up, dn; input [7:0] din; output [7:0] dout; output par, carry, borrow; reg [7:0] dout; reg par, carry, borrow;
http://www.codebf.com/read/9694/175934
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机