OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [actel/] [ordb1a3pe1500/] [rtl/] [verilog/] [include/] [orpsoc-params.v] - Rev 854

Go to most recent revision | Compare with Previous | Blame | View Log

//////////////////////////////////////////////////////////////////////
////                                                              ////
//// orpsoc-params                                                ////
////                                                              ////
//// Top level ORPSoC parameters file                             ////
////                                                              ////
//// Included in toplevel and testbench                           ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
////                                                              ////
//// Copyright (C) 2009, 2010 Authors and OPENCORES.ORG           ////
////                                                              ////
//// This source file may be used and distributed without         ////
//// restriction provided that this copyright statement is not    ////
//// removed from the file and that any derivative work contains  ////
//// the original copyright notice and the associated disclaimer. ////
////                                                              ////
//// This source file is free software; you can redistribute it   ////
//// and/or modify it under the terms of the GNU Lesser General   ////
//// Public License as published by the Free Software Foundation; ////
//// either version 2.1 of the License, or (at your option) any   ////
//// later version.                                               ////
////                                                              ////
//// This source is distributed in the hope that it will be       ////
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
//// PURPOSE.  See the GNU Lesser General Public License for more ////
//// details.                                                     ////
////                                                              ////
//// You should have received a copy of the GNU Lesser General    ////
//// Public License along with this source; if not, download it   ////
//// from http://www.opencores.org/lgpl.shtml                     ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
 
///////////////////////////
//                       //
// Peripheral parameters //
//                       //
///////////////////////////
 
// SPI 0 params
parameter spi0_ss_width = 1;
parameter spi0_wb_adr = 8'hb0;
parameter wbs_d_spi0_data_width = 8;   
parameter spi0_wb_adr_width = 3;
 
// SPI 1 params
parameter spi1_ss_width = 1;
parameter spi1_wb_adr = 8'hb1;
parameter spi1_wb_adr_width = 3;
parameter wbs_d_spi1_data_width = 8;
 
// SPI 2 params
parameter spi2_ss_width = 1;
parameter spi2_wb_adr = 8'hb2;
parameter spi2_wb_adr_width = 3;
parameter wbs_d_spi2_data_width = 8;
 
// i2c master slave params
// Slave addresses
parameter HV0_SADR  = 8'h44;
parameter HV1_SADR  = 8'h45;
parameter HV2_SADR  = 8'h46;
parameter HV3_SADR  = 8'h47;
 
// i2c 0 params
parameter i2c_0_wb_adr = 8'ha0;
parameter i2c_0_wb_adr_width = 3;
parameter wbs_d_i2c0_data_width = 8;
 
// i2c 1 params
parameter i2c_1_wb_adr = 8'ha1;
parameter i2c_1_wb_adr_width = 3;
parameter wbs_d_i2c1_data_width = 8;
 
// i2c 2 params
parameter i2c_2_wb_adr = 8'ha2;
parameter i2c_2_wb_adr_width = 3;
parameter wbs_d_i2c2_data_width = 8;   
 
// i2c 3 params
parameter i2c_3_wb_adr = 8'ha3;
parameter i2c_3_wb_adr_width = 3;
parameter wbs_d_i2c3_data_width = 8;
 
// GPIO 0 params
parameter wbs_d_gpio0_data_width = 8;
parameter gpio0_wb_adr_width = 3;
parameter gpio0_io_width = 8;
parameter gpio0_wb_adr = 8'h91;
parameter gpio0_dir_reset_val = 0;
parameter gpio0_o_reset_val = 0;
 
// UART 0 params
parameter wbs_d_uart0_data_width = 8;
parameter uart0_wb_adr = 8'h90;
parameter uart0_data_width = 8;
parameter uart0_addr_width = 3;
 
// USB slave 0 params
parameter wbs_d_usb0_data_width = 8;
parameter wbs_d_usb0_adr_width = 8;
parameter usb0_wb_adr = 8'h9c; // USB0
 
// USB slave 1 params
parameter wbs_d_usb1_data_width = 8;
parameter wbs_d_usb1_adr_width = 8;
parameter usb1_wb_adr = 8'h9d; // USB1
 
// Flash ROM (Actel 1Kbit internal flash)
parameter flashrom_wb_data_width = 8;
parameter flashrom_wb_adr_width = 7;
parameter flashrom_wb_adr = 8'hcf;
 
// ROM
parameter wbs_i_rom0_data_width = 32;
parameter wbs_i_rom0_addr_width = 6;
parameter rom0_wb_adr = 4'hf;
 
// MC0 (SDRAM, or other)
parameter wbs_i_mc0_data_width = 32;   
parameter wbs_d_mc0_data_width = 32;
 
// ETH0 defines
parameter eth0_wb_adr = 8'h92;
parameter wbs_d_eth0_data_width = 32;
parameter wbs_d_eth0_addr_width = 12;
parameter wbm_eth0_data_width = 32;
parameter wbm_eth0_addr_width = 32;
 
// SDC controller defines
parameter sdc_wb_adr = 8'h9e;
parameter wbs_d_sdc_data_width = 32;
parameter wbm_sdc_data_width = 32;
parameter wbm_sdc_addr_width = 32;
 
// Memory sizing for wb_ram (simulation only)
parameter internal_sram_mem_span = 32'h0080_0000; // 8MB
parameter internal_sram_adr_width_for_span = 23;  // log2(8192*1024)
 
//////////////////////////////////////////////////////
//                                                  //
// Wishbone bus parameters                          //
//                                                  //
//////////////////////////////////////////////////////
 
////////////////////////
//                    //
// Arbiter parameters //
//                    // 
////////////////////////
 
parameter wb_dw = 32; // Default Wishbone full word width
parameter wb_aw = 32; // Default Wishbone full address width
 
///////////////////////////
//                       //
// Instruction bus       //
//                       //
///////////////////////////
parameter ibus_arb_addr_match_width = 4;
// Slave addresses
parameter ibus_arb_slave0_adr = rom0_wb_adr; // FLASH ROM
parameter ibus_arb_slave1_adr = 4'h0; // Main memory (SDRAM/FPGA SRAM)
 
///////////////////////////
//                       //
// Data bus              //
//                       //
///////////////////////////
// Has auto foward to last slave when no address hits
parameter dbus_arb_wb_addr_match_width = 8;
parameter dbus_arb_wb_num_slaves = 4;
// Slave addresses
parameter dbus_arb_slave0_adr = 4'h0; // Main memory (SDRAM/FPGA SRAM)
parameter dbus_arb_slave1_adr = eth0_wb_adr; // Ethernet 0
parameter dbus_arb_slave2_adr = sdc_wb_adr;
 
///////////////////////////////
//                           //
// Byte-wide peripheral bus  //
//                           //
///////////////////////////////
parameter bbus_arb_wb_addr_match_width = 8;
parameter bbus_arb_wb_num_slaves = 12; // Update this when changing slaves!
// Slave addresses
parameter bbus_arb_slave0_adr  = uart0_wb_adr;
parameter bbus_arb_slave1_adr  = gpio0_wb_adr;
parameter bbus_arb_slave2_adr  = usb0_wb_adr; 
parameter bbus_arb_slave3_adr  = i2c_0_wb_adr;
parameter bbus_arb_slave4_adr  = i2c_1_wb_adr;
parameter bbus_arb_slave5_adr  = i2c_2_wb_adr;
parameter bbus_arb_slave6_adr  = i2c_3_wb_adr;
parameter bbus_arb_slave7_adr  = spi0_wb_adr; 
parameter bbus_arb_slave8_adr  = spi1_wb_adr; 
parameter bbus_arb_slave9_adr  = spi2_wb_adr; 
parameter bbus_arb_slave10_adr = flashrom_wb_adr;
parameter bbus_arb_slave11_adr = usb1_wb_adr;
parameter bbus_arb_slave12_adr = 0 /* UNASSIGNED */;
parameter bbus_arb_slave13_adr = 0 /* UNASSIGNED */;
parameter bbus_arb_slave14_adr = 0 /* UNASSIGNED */;
parameter bbus_arb_slave15_adr = 0 /* UNASSIGNED */;
parameter bbus_arb_slave16_adr = 0 /* UNASSIGNED */;
parameter bbus_arb_slave17_adr = 0 /* UNASSIGNED */;
parameter bbus_arb_slave18_adr = 0 /* UNASSIGNED */;
parameter bbus_arb_slave19_adr = 0 /* UNASSIGNED */;
 
 
 
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.