-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from saursin/refactor-rtl
Refactor RTL
- Loading branch information
Showing
28 changed files
with
1,602 additions
and
1,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
/** | ||
* Barebones Atom | ||
*/ | ||
/////////////////////////////////////////////////////////////////// | ||
// File : AtomBones.v | ||
// Author : Saurabh Singh ([email protected]) | ||
// Description : AtomBones is a wrapper for AtomRV_wb, it is a | ||
// stub SoC target for AtomSim, which uses software simulated | ||
// memories and communication modules. | ||
/////////////////////////////////////////////////////////////////// | ||
|
||
`include "Timescale.vh" | ||
`include "Config.vh" | ||
`include "AtomBones_Config.vh" | ||
|
||
`include "core/AtomRV.v" | ||
|
||
`default_nettype none | ||
|
||
module AtomBones | ||
( | ||
input wire clk_i, | ||
|
@@ -26,22 +34,22 @@ | |
input wire dmem_ack_i // DMEM Ack signal | ||
); | ||
|
||
// Core | ||
AtomRV atom_core | ||
( | ||
.clk_i (clk_i), | ||
.rst_i (rst_i), | ||
.imem_addr_o (imem_addr_o), | ||
.imem_data_i (imem_data_i), | ||
.imem_valid_o (imem_valid_o), | ||
.imem_ack_i (imem_ack_i), | ||
.dmem_addr_o (dmem_addr_o), | ||
.dmem_data_i (dmem_data_i), | ||
.dmem_data_o (dmem_data_o), | ||
.dmem_sel_o (dmem_sel_o), | ||
.dmem_we_o (dmem_we_o), | ||
.dmem_valid_o (dmem_valid_o), | ||
.dmem_ack_i (dmem_ack_i) | ||
); | ||
// Core | ||
AtomRV atom_core | ||
( | ||
.clk_i (clk_i), | ||
.rst_i (rst_i), | ||
.imem_addr_o (imem_addr_o), | ||
.imem_data_i (imem_data_i), | ||
.imem_valid_o (imem_valid_o), | ||
.imem_ack_i (imem_ack_i), | ||
.dmem_addr_o (dmem_addr_o), | ||
.dmem_data_i (dmem_data_i), | ||
.dmem_data_o (dmem_data_o), | ||
.dmem_sel_o (dmem_sel_o), | ||
.dmem_we_o (dmem_we_o), | ||
.dmem_valid_o (dmem_valid_o), | ||
.dmem_ack_i (dmem_ack_i) | ||
); | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
`ifndef __HYDROGENSOC_CONFIG_VH__ | ||
`define __HYDROGENSOC_CONFIG_VH__ | ||
|
||
// Reset address | ||
`define SOC_RESET_ADDRESS 32'h00000000 | ||
|
||
// Atombones doesn't need the following parameters since everything | ||
// other that the core is software simulated | ||
|
||
// SoC Peripherals | ||
|
||
// IRAM | ||
// `define IRAM_ADDR 32'h00000000 // 0 GB boundry | ||
// `define IRAM_SIZE 32'h00008000 // 32 KB | ||
|
||
// // RAM | ||
// `define RAM_ADDR 32'h04000000 // 0.5 GB boundry | ||
// `define RAM_SIZE 32'h00002000 // 8 KB | ||
|
||
// // UART | ||
// `define UART_ADDR 32'h08000000 // 1.0 GB boundry | ||
// `define UART_SIZE 32'h00000008 // 8 bytes | ||
|
||
`endif //__HYDROGENSOC_CONFIG_VH__ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.