Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
HidetaroTanaka committed Dec 1, 2023
1 parent 5115b45 commit 5a4e4f5
Show file tree
Hide file tree
Showing 23 changed files with 3,741 additions and 10 deletions.
49 changes: 49 additions & 0 deletions fpga/fpga.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 12/01/2023 04:05:10 PM
// Design Name:
// Module Name: fpga
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////


module fpga(
input clk_in1_0,
input RST_0,
output [6:0] SEG_0,
output [7:0] AN_0
);
wire [31:0] check;
wire CLK_top;

design_1_wrapper clk_wiz(
.clk_in1_0(clk_in1_0),
.clk_out1_0(CLK_top)
);

top top(
.CLK(CLK_top),
.RST(RST_0),
.tohost(check)
);
SEG_PUT seg_put(
.CLK(clk_in1_0),
.reset(RST_0),
.check(check),
.SEG(SEG_0),
.AN(AN_0)
);
endmodule
2 changes: 1 addition & 1 deletion fpga/sim.v
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module sim();

#256 RST = 0;
#256 RST = 1;
#1024 $finish;
#1048576 $finish;
end

always begin
Expand Down
8 changes: 4 additions & 4 deletions fpga/top.v
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module top(
wire io_icache_axi4lite_r_valid;
wire [31:0] io_icache_axi4lite_r_bits_data;
wire [2:0] io_icache_axi4lite_r_bits_resp;
wire io_icache_axi4lite_w_ready;
// wire io_icache_axi4lite_w_ready;
wire io_dcache_axi4lite_ar_ready;
wire io_dcache_axi4lite_aw_ready;
wire io_dcache_axi4lite_b_valid;
Expand All @@ -41,8 +41,8 @@ module top(
wire [63:0] io_dcache_axi4lite_r_bits_data;
wire [2:0] io_dcache_axi4lite_r_bits_resp;
wire io_dcache_axi4lite_w_ready;
wire [63:0] io_reset_vector;
wire io_hartid;
// wire [63:0] io_reset_vector;
// wire io_hartid;
wire io_icache_axi4lite_ar_valid;
wire [63:0] io_icache_axi4lite_ar_bits_addr;
wire [2:0] io_icache_axi4lite_ar_bits_prot;
Expand Down Expand Up @@ -78,7 +78,7 @@ module top(
.io_icache_axi4lite_r_valid(io_icache_axi4lite_r_valid),
.io_icache_axi4lite_r_bits_data(io_icache_axi4lite_r_bits_data),
.io_icache_axi4lite_r_bits_resp(io_icache_axi4lite_r_bits_resp),
.io_icache_axi4lite_w_ready(io_icache_axi4lite_w_ready),
.io_icache_axi4lite_w_ready(),
.io_dcache_axi4lite_ar_ready(io_dcache_axi4lite_ar_ready),
.io_dcache_axi4lite_aw_ready(io_dcache_axi4lite_aw_ready),
.io_dcache_axi4lite_b_valid(io_dcache_axi4lite_b_valid),
Expand Down
257 changes: 257 additions & 0 deletions fpga/vector_matmul_data.mem
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
fcfe0501fd04fdff
0305fffafd0406fa
fafdfefc02f80600
0206fa02fb0304f8
00fe0302ff02fdfc
05f9fa03fe0401fe
03fdfefc060106f8
fb01fc04ff050101
04fe00050505fcff
fa06f902fcfc0406
05fd06fdf9fbfdf8
fd0505fc04030105
fb0204050605f905
fbf9fafcf8030000
05fbfef8020403fd
fbfa06fefff8f902
04040106fafdfa06
01fcfa00f8fb05fc
0304fdfc03fafc00
0202f8f800faf802
fbfffc01fb02f803
020503020506f9fe
fefa030402f9ff01
01fb01fc0405fd05
f9fb0200fdff0300
ff06ff02fbfa0602
03fbf8fa04000405
fbfa030203ff01fc
faf803f8fff9fffd
fbfcf9030104ffff
fc000204f903fffc
fc0204fa06fffb01
01fefafef8050106
fe05f8ff04fd0302
fffd03fffbfcfefb
fb01fbfc02fd01fd
0203fbfdfcff0500
04ff00f905fe04fb
06fbff060203fbfc
f901fdfe01f8f804
fe0404000505f801
fe00fcf9fbfbfc05
020501fefafc0500
0604fe0503050602
0604f9fa03010600
fc0603f80506faf9
03f8fcfcfb040203
06fd04fefcfa04fc
00fa00f8fafdf805
06fdf804fb0503fc
fa00fc030302fa06
01fb00fc0406fdfd
fdfaf801ffff05f8
fcf902fcfafd00fb
fafdfbfc06020305
fa04fa05020205fb
06fe040403fdfb03
f9f8f8fffa01fc04
fcfffd01f8fdfdfb
fc020606fc0300fa
fe010205fdf800fa
00010300f90106f8
0101fe030503f8ff
0402fcfa05fefb00
fd01f8f8fe0504ff
fa01060102fa0501
f8fdfe0503f805ff
0402fa04fffdf800
06060504fdfef903
06fcf8faf9fb0003
0304f9fafa0502fa
02fefefb0601fc01
05f90602fcfe0301
03fffbf8faf8fe01
05f9fe02fd03fbf8
04fb02fc00fd05ff
0206fa05fa050102
01fbff01fa06f804
f90205fc0206fffb
0301fc01ff060101
faf8f9fffe06fb01
fb05fb00fafb06f9
f8020202fe02fbfa
020505ff0401fcfc
0401fb0606030103
020104fa03f8fa06
00f804fefa05fdfb
06fafc00fafc0405
00fa05fcfff80404
f806fdfb04fdff01
02f801f905f80004
050103fffbf804fe
fc03f903fffcf900
fcf9fc0106f8ffff
020603fcff03fafd
f9fcfefc05050205
fe0104fcfdfc0506
02ff0103fa0203fa
f800fafef9f803f9
f906fd03fbfa0405
0502fbfe010205fc
0003f80403050604
050406fa00f90205
00fc01010500fb06
0402fefc0003fffe
fa05fffdfc01f9fc
f806020201f9fd00
fffcfafbfe000400
f903fffefdfdfb02
fd0400f8050102fb
f804fdf8f8fbfdfe
feff0303f80206ff
00fe00fff9fe02fb
fbfbf806fcfe0505
06fcff06fd0100fd
feffff04f9fa0106
0000030004030103
01faff06fffff9fa
0102f9fa0201fafb
fffdfd0003fcf906
02fdfff8fe06fef8
f901f905f8fafffc
f8fe06fafdf9f906
05fafe02fdfffafc
ffff01fc060401fd
fdfe0203fcfd06fa
f901fb06fe05fefa
0605fd0301fffefd
04f8fffafefe00fe
0000fe0002f806fb
fbfc00020505fbf8
fefa010100f9f904
fafbfc03fd02f9f9
05fefdfefc00f9fe
fcfff9f9040400fe
ff01f9fffef8fbfb
0200fbfcf9060204
fef901fb01030300
fbf806fffef9faf9
0505000100040106
03fa0404fa01f806
f900f9fff9fffbfa
fbfefffafafc0005
0403060004f90405
0302f80205f9f803
010606f90606fe03
fffff90102fdf903
fc04fbfffd02f8fe
fe0301fc06fa02ff
f8fafaff03fc0505
030101ffff010201
fe01fef9fb000306
f80504f8f8f8fdfc
06fc05fdfc03f9fc
00fbf9f8fdfd0302
f804fdf903050604
fdf9fc0003fb0403
020402fd01fd00ff
fa04fb0104f9f9fc
f9f9fcff00060303
fd05f8f80506fc03
fafbfe0203fd04fd
f8f8fa0003fefdfb
fdfdf906fd02fdfc
000305f8fb010502
f9fbfffe00fbfe02
03fe0205fffffd03
f906fbff01030305
fafffb0003060204
fff9f8fcf8fffdff
020604f9fc0406fa
0500fcfcf902fbfa
0004fd05000004fc
f9fafb00fcfa06fe
04030101fdfdfaff
000505fefb06fbfc
05fb03ff06f8fdf8
fa03f9f9f8fafcfb
ff02fbf80201f9fc
fa0505fa05faff01
fcf8fffdfafafd05
f8fc05fb05fbfd02
ff020601fd0001f9
0301fe0404020501
06f904fbfbff02fe
fff90602f80101fc
01fc01f905fcfb03
04fd060501fc03fd
04f80604020300fa
0103fefcfdfcf9ff
06f903fbf802ff00
fbfcfff8ff02f905
fbff0302fd00fb06
fbf9f9f903fd00ff
fefe06fd01fef800
0205050101faf8ff
01f806fffafcfd00
fcfbfbfff9f9f803
05ff01fbfc03fc02
01fbf8fe03f800fe
f9fdff060501fffa
fefaf8f806060106
f80306ff0103fe01
fcf800ff0601fe02
06f8020404ff05fb
05f9fbfffbfdf800
0301fafd0505fc04
fafc020306f8fbfc
06fc0102f8000203
04fefd06ff010306
04f8fcfaf8f8f9fa
f900fd02fa000100
04fc000101fc03fa
00faf8fef804f806
fc00030106f803fa
ff06f9040002fafc
fdfb05f9f8fc01f9
fbfa060200f903f9
04fbfb020300fafc
fe02f90106fe0105
fa06fc03fffbfb04
06f805fdfdfffc06
040404f803fd03fc
0405fffa0203fc00
0504020305f9fd04
fcfa0105fefb0300
faf9040601fe0603
fcfcfcfdf900f9fe
01fafef901fef801
ff0200f902030104
06fa00010501f803
0200fc03fdf8fef9
fc01fa0402fdfd01
fd00f904ff00f9f9
05fc0305f8fbfe03
fd01fbfd0004fb03
03fafb01fbf80406
05f803fc0100fef9
fe06fbfe0100fe02
f9fc0104fffc01fb
fe06f9fb00fef804
0400fef90402fa00
0400f9030005ff01
fdf90300f90004f9
f9fb060303030103
050301ff05f8faf9
ffff01fbfe030201
05fefd05fc06fc04
fffffff90000fbfe
fefafd05fb00fc01
fbfef801f80005ff
01ff04fef802faf9
fc01fbfffb0300f8
fa00fdf903fdfe06
06fefef9fd02fb03
04030205fcf801f8
0101010101010101
Loading

0 comments on commit 5a4e4f5

Please sign in to comment.