목록[Harman] 하만 반도체 설계/VerilogHDL (18)
Kraklog
프로그램 : Quaturs Prime lite edition 18.1 사용문법 : Verilog 2001 보드 : DE1-SOC
프로그램 : Quaturs Prime lite edition 18.1 사용문법 : Verilog 2001 보드 : DE1-SOC module tb_my_rotate(); reg rotate; reg[15:0] data ; regtmp; always @(*) begin if(rotate) begin//if rotate==1 repeat (8) begin tmp = data[15]; data = {data[14:0], tmp}; end end else begin data = data; end end initial begin rotate = 1'b0; data = 16'hFFAA; #100; rotate = 1'b1; data = 16'hFFAA; #100; end endmodule test bench만 있기..
.프로그램 : Quaturs Prime lite edition 18.1 사용문법 : Verilog 2001 module mux4 ( input [3:0] mux_in_a , input [3:0] mux_in_b , input mux_sel , output reg [3:0] mux_out ); always @(*) begin if (mux_sel) mux_out = mux_in_a; else mux_out = mux_in_b; end endmodule `timescale 1 ns/1 ns module tb_mux4(); reg [3:0] mux_in_a ; reg [3:0] mux_in_b ; reg mux_sel ; wire [3:0] mux_out ; mux4 uMux4 ( .mux_in_a(mux_i..
프로그램 : Quaturs Prime lite edition 18.1 사용문법 : Verilog 2001 실습 목표 : 8x8 multiplexer build 8x8 mux를 기본 논리게이트와 컨트롤을 구성하여 처음부터 작성하는것이 현재 최종 목표이다. 1.Adder 16bit - adder module adder ( input [15:0] dataa, input [15:0] datab, output [15:0] sum ); assign sum = dataa + datab; endmodule 16bit - tb_adder module tb_adder (); reg [15:0] dataa ; reg [15:0] datab ; wire [15:0] sum ; adder uAdder ( .dataa(dataa..