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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [orp/] [orp_soc/] [rtl/] [verilog/] [xsv_fpga_top.v] - Diff between revs 1192 and 1268

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1192 Rev 1268
Line 66... Line 66...
// Fixed some typos
// Fixed some typos
//
//
//
//
 
 
`include "xsv_fpga_defines.v"
`include "xsv_fpga_defines.v"
 
 
// synopsys translate_off
 
`include "bench_defines.v"
`include "bench_defines.v"
// synopsys translate_on
 
 
 
module xsv_fpga_top (
module xsv_fpga_top (
 
 
        //
        //
        // Global signals
        // Global signals
Line 607... Line 604...
// This way we have flash at base address 0x0
// This way we have flash at base address 0x0
// during reset vector execution (boot). First
// during reset vector execution (boot). First
// access to real Flash area will automatically
// access to real Flash area will automatically
// move SRAM to 0x0.
// move SRAM to 0x0.
//
//
 
 
`ifdef NO_FLASH_INSTRUCION_ADDR
 
always prefix_flash <= #1 1'b0;
 
`else
 
always @(posedge wb_clk or negedge rstn)
always @(posedge wb_clk or negedge rstn)
        if (!rstn)
        if (!rstn)
                prefix_flash <= #1 1'b1;
                prefix_flash <= #1 1'b1;
        else if (wb_rim_cyc_o &&
        else if (wb_rim_cyc_o &&
                (wb_rim_adr_o[31:32-`APP_ADDR_DEC_W] == `APP_ADDR_FLASH))
                (wb_rim_adr_o[31:32-`APP_ADDR_DEC_W] == `APP_ADDR_FLASH))
                  prefix_flash <= #1 1'b0;
                  prefix_flash <= #1 1'b0;
`endif
 
assign wb_rif_adr = prefix_flash ? {`APP_ADDR_FLASH, wb_rim_adr_o[31-`APP_ADDR_DEC_W:0]}
assign wb_rif_adr = prefix_flash ? {`APP_ADDR_FLASH, wb_rim_adr_o[31-`APP_ADDR_DEC_W:0]}
                        : wb_rim_adr_o;
                        : wb_rim_adr_o;
assign wb_rdm_ack_i = (wb_rdm_adr_o[31:28] == `APP_ADDR_FAKEMC) &&
assign wb_rdm_ack_i = (wb_rdm_adr_o[31:28] == `APP_ADDR_FAKEMC) &&
                        wb_rdm_cyc_o && wb_rdm_stb_o ? 1'b1 : wb_rdm_ack;
                        wb_rdm_cyc_o && wb_rdm_stb_o ? 1'b1 : wb_rdm_ack;
 
 
Line 874... Line 866...
 
 
        // Debug
        // Debug
        .dbg_stall_i    ( dbg_stall ),
        .dbg_stall_i    ( dbg_stall ),
        .dbg_dat_i      ( dbg_dat_dbg ),
        .dbg_dat_i      ( dbg_dat_dbg ),
        .dbg_adr_i      ( dbg_adr ),
        .dbg_adr_i      ( dbg_adr ),
        .dbg_op_i       ( dbg_op ),
 
        .dbg_ewt_i      ( 1'b0 ),
        .dbg_ewt_i      ( 1'b0 ),
        .dbg_lss_o      ( dbg_lss ),
        .dbg_lss_o      ( dbg_lss ),
        .dbg_is_o       ( dbg_is ),
        .dbg_is_o       ( dbg_is ),
        .dbg_wp_o       ( dbg_wp ),
        .dbg_wp_o       ( dbg_wp ),
        .dbg_bp_o       ( dbg_bp ),
        .dbg_bp_o       ( dbg_bp ),
        .dbg_dat_o      ( dbg_dat_risc ),
        .dbg_dat_o      ( dbg_dat_risc ),
 
        .dbg_ack_o      ( ),
 
        .dbg_stb_i      ( dbg_op[2] ),
 
        .dbg_we_i       ( dbg_op[0] ),
 
 
        // Power Management
        // Power Management
        .pm_clksd_o     ( ),
        .pm_clksd_o     ( ),
        .pm_cpustall_i  ( 1'b0 ),
        .pm_cpustall_i  ( 1'b0 ),
        .pm_dc_gate_o   ( ),
        .pm_dc_gate_o   ( ),

powered by: WebSVN 2.1.0

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