검색어 입력폼

디지털시스템) Verilog를 이용한 Single cycle 구현

저작시기 2012.06 |등록일 2013.06.09 파일확장자압축파일 (zip) | 가격 2,000원

소개글

Verilog를 이용한 Single cycle구현

컴파일 실행환경

Verilog

본문내용

module top (clk,res,x);
input clk,res,x;
wire [31:0]instruction,Read_data1,Read_data2,ALU_result,ReadData;
wire [31:0]Branch_result,Jump_address,add_out,pc_out,ALUSrc_out;
wire [31:0]shift_out1,MemtoReg_out,shift_out2,sign_outALUSrc_out,sign_out,Jump_out,Branch_out;
wire RegWrite,RegDst,ALUSrc,zero,MemWrite,MemRead,MemtoReg,Branch,Jump;
wire Carry;
wire [4:0]RegDst_out;
wire [3:0]ALU_control_lines;
wire [1:0]ALUOp;

PC p0(clk,x,res,Jump_out,pc_out);
Add a0(pc_out,32'h00000004,add_out);
Instruction_memory im0(pc_out, instruction);
Register r1(clk,instruction[25:21],instruction[20:16],RegDst_out,MemtoReg_out,RegWrite,Read_data1,Read_data2);
Mux2 m1(instruction[20:16],instruction[15:11],RegDst,RegDst_out);
ALU32 alu1(Read_data1,ALUSrc_out,ALU_control_lines,ALU_result,zero);
Mux32 m2(Read_data2,sign_out,ALUSrc,ALUSrc_out);
Sign_extend s1(instruction[15:0],sign_out);
data_memory d1(clk,ALU_result,Read_data2,ReadData,MemWrite,MemRead);
Mux32 m3(ALU_result,ReadData,MemtoReg,MemtoReg_out);
Control_Unit c1(instruction[31:26],zero,RegDst,ALUSrc,MemtoReg,RegWrite
,MemRead,MemWrite,Branch,ALUOp,Jump);
ALU_Control c2(ALUOp,instruction[5:0],ALU_control_lines);
Shift_left sl1(sign_out,shift_out1);
Add a1(add_out,shift_out1,Branch_result);
Mux32 m4(add_out,Branch_result,Branch,Branch_out);
Mux32 m5(Branch_out,Jump_address,Jump,Jump_out);
Shift_left sl2(instruction,shift_out2);

assign Jump_address[31:28] = add_out[31:28];
assign Jump_address[27:0] = shift_out2[27:0];

endmodule

압축파일 내 파일목록

.sopc_builder/filters.xml
Add.v
Add.v.bak
alu32.v
alu32.v.bak
alu_control.v
alu_control.v.bak
control_unit.v
control_unit.v.bak
count_8.v
data_memory.v
data_memory.v.bak
db/altsyncram_4lc1.tdf
db/altsyncram_ikd1.tdf
db/altsyncram_mvc1.tdf
db/logic_util_heursitic.dat
db/prev_cmp_top.asm.qmsg
db/prev_cmp_top.fit.qmsg
db/prev_cmp_top.map.qmsg
db/prev_cmp_top.qmsg
db/prev_cmp_top.tan.qmsg
db/top.(0).cnf.cdb
db/top.(0).cnf.hdb
db/top.(1).cnf.cdb
db/top.(1).cnf.hdb
db/top.(10).cnf.cdb
db/top.(10).cnf.hdb
db/top.(11).cnf.cdb
db/top.(11).cnf.hdb
db/top.(12).cnf.cdb
db/top.(12).cnf.hdb
db/top.(13).cnf.cdb
db/top.(13).cnf.hdb
db/top.(14).cnf.cdb
db/top.(14).cnf.hdb
db/top.(15).cnf.cdb
db/top.(15).cnf.hdb
db/top.(16).cnf.cdb
db/top.(16).cnf.hdb
db/top.(17).cnf.cdb
db/top.(17).cnf.hdb
db/top.(18).cnf.cdb
db/top.(18).cnf.hdb
db/top.(19).cnf.cdb
db/top.(19).cnf.hdb
db/top.(2).cnf.cdb
db/top.(2).cnf.hdb
db/top.(20).cnf.cdb
db/top.(20).cnf.hdb
db/top.(21).cnf.cdb
db/top.(21).cnf.hdb
db/top.(22).cnf.cdb
db/top.(22).cnf.hdb
db/top.(23).cnf.cdb
db/top.(23).cnf.hdb
db/top.(24).cnf.cdb
db/top.(24).cnf.hdb
db/top.(25).cnf.cdb
db/top.(25).cnf.hdb
db/top.(26).cnf.cdb
db/top.(26).cnf.hdb
db/top.(27).cnf.cdb
db/top.(27).cnf.hdb
db/top.(28).cnf.cdb
db/top.(28).cnf.hdb
db/top.(29).cnf.cdb
db/top.(29).cnf.hdb
db/top.(3).cnf.cdb
db/top.(3).cnf.hdb
db/top.(30).cnf.cdb
db/top.(30).cnf.hdb
db/top.(31).cnf.cdb
db/top.(31).cnf.hdb
db/top.(4).cnf.cdb
db/top.(4).cnf.hdb
db/top.(5).cnf.cdb
db/top.(5).cnf.hdb
db/top.(6).cnf.cdb
db/top.(6).cnf.hdb
db/top.(7).cnf.cdb
db/top.(7).cnf.hdb
db/top.(8).cnf.cdb
db/top.(8).cnf.hdb
db/top.(9).cnf.cdb
db/top.(9).cnf.hdb
db/top.asm.qmsg
db/top.asm.rdb
db/top.asm_labs.ddb
db/top.cbx.xml
db/top.cmp.bpm
db/top.cmp.cdb
db/top.cmp.ecobp
db/top.cmp.hdb
db/top.cmp.kpt
db/top.cmp.logdb
db/top.cmp.rdb
db/top.cmp.tdb
db/top.cmp0.ddb
db/top.cmp2.ddb
db/top.cmp_merge.kpt
db/top.db_info
db/top.eco.cdb
db/top.fit.qmsg
db/top.hier_info
db/top.hif
db/top.lpc.html
db/top.lpc.rdb
db/top.lpc.txt
db/top.map.bpm
db/top.map.cdb
db/top.map.ecobp
db/top.map.hdb
db/top.map.kpt
db/top.map.logdb
db/top.map.qmsg
db/top.map_bb.cdb
db/top.map_bb.hdb
db/top.map_bb.logdb
db/top.pre_map.cdb
db/top.pre_map.hdb
db/top.ram0_Instruction_memory_895be9cc.hdl.mif
db/top.ram0_Registers_85ae553e.hdl.mif
db/top.rtlv.hdb
db/top.rtlv_sg.cdb
db/top.rtlv_sg_swap.cdb
db/top.sgdiff.cdb
db/top.sgdiff.hdb
db/top.sld_design_entry.sci
db/top.sld_design_entry_dsc.sci
db/top.smart_action.txt
db/top.tan.qmsg
db/top.tis_db_list.ddb
db/top.tmw_info
d_ff.v
incremental_db/compiled_partitions/top.root_partition.cmp.cdb
incremental_db/compiled_partitions/top.root_partition.cmp.dfp
incremental_db/compiled_partitions/top.root_partition.cmp.hdb
incremental_db/compiled_partitions/top.root_partition.cmp.kpt
incremental_db/compiled_partitions/top.root_partition.cmp.logdb
incremental_db/compiled_partitions/top.root_partition.cmp.rcfdb
incremental_db/compiled_partitions/top.root_partition.cmp.re.rcfdb
incremental_db/compiled_partitions/top.root_partition.map.cdb
incremental_db/compiled_partitions/top.root_partition.map.dpi
incremental_db/compiled_partitions/top.root_partition.map.hdb
incremental_db/compiled_partitions/top.root_partition.map.kpt
incremental_db/README
instruction_memory.v
instruction_memory.v.bak
mux2.v
mux2.v.bak
Mux32.txt
Mux32.v
Mux32.v.bak
mux81.v
PC.v
PC.v.bak
registers.v
registers.v.bak
seg7.v
segout.v
Shift_left.v
Shift_left.v.bak
Sign_extend.v
Sign_extend.v.bak
sopc_builder_log.txt
top.asm.rpt
top.cdf
top.done
top.dpf
top.fit.rpt
top.fit.summary
top.flow.rpt
top.map.rpt
top.map.smsg
top.map.summary
top.pin
top.pof
top.qpf
top.qsf
top.qws
top.sof
top.tan.rpt
top.tan.summary
top.txt
top.v
top.v.bak

참고 자료

없음
다운로드 맨위로