File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44
55module memory_map # ( parameter SIZE = 1024 )
6- ( input wire clk
6+ ( input wire clk
7+ , output reg [9 : 0 ] LEDR
8+
79 , mem_bus .memory d_bus
810 , mem_bus .memory i_bus
9- , output reg [9 : 0 ] LEDR
1011 );
1112
1213 reg [7 : 0 ] M0 [0 : SIZE - 1 ] /* synthesis ram_init_file = "../../poc/poc0.mif" */ ; // byte lane 0
Original file line number Diff line number Diff line change 1- // do i need include?
2-
31`include " src/interfaces/mem_bus.svh"
42
53module top
@@ -14,18 +12,18 @@ module top
1412 memory_map # ( .SIZE ( 512 ) )
1513 memory_map
1614 ( .clk ( CLOCK_50 )
17-
18- , .d_bus (d_bus)
19- , .i_bus (i_bus)
20-
2115 , .LEDR ( LEDR )
16+
17+ , .d_bus ( d_bus )
18+ , .i_bus ( i_bus )
2219 );
2320
2421 utoss_riscv core
2522 ( .clk ( CLOCK_50 )
26- , .reset ( ~ KEY [0 ] )
27- , .d_bus (d_bus)
28- , .i_bus (i_bus)
23+ , .reset ( ~ KEY [0 ] )
24+
25+ , .d_bus ( d_bus )
26+ , .i_bus ( i_bus )
2927 );
3028
3129endmodule
Original file line number Diff line number Diff line change 44// a dual-read single-write memory block that we use with our core in simulation environment
55module memory
66 # ( parameter SIZE = 1024 )
7- ( input wire clk
7+ ( input wire clk
8+
89 , mem_bus .memory i_bus
910 , mem_bus .memory d_bus
1011 );
Original file line number Diff line number Diff line change @@ -13,16 +13,18 @@ module top
1313 wire unused = &{ i_bus.write_data, i_bus.write_enable} ;
1414 memory # ( .SIZE ( MEM_SIZE ) )
1515 u_memory
16- ( .clk ( clk )
17- , .d_bus ( d_bus )
18- , .i_bus ( i_bus )
16+ ( .clk ( clk )
17+
18+ , .d_bus ( d_bus.memory )
19+ , .i_bus ( i_bus.memory )
1920 );
2021
2122 utoss_riscv core
2223 ( .clk ( clk )
2324 , .reset ( reset )
24- , .d_bus ( d_bus )
25- , .i_bus ( i_bus )
25+
26+ , .d_bus ( d_bus.consumer )
27+ , .i_bus ( i_bus.consumer )
2628 );
2729
2830endmodule
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ module utoss_riscv
4646 , .stall_f ( stall_f )
4747 , .flush_f ( flush_f )
4848
49- , .imem__address (i_bus.address)
50- , .imem__data (i_bus.read_data)
49+ , .imem__address ( i_bus.address )
50+ , .imem__data ( i_bus.read_data )
5151 );
5252
5353 assign i_bus.write_data = data_t ' (0 );
You can’t perform that action at this time.
0 commit comments