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

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [rtl/] [deppbyte.v] - Diff between revs 11 and 46

Show entire file | Details | Blame | View Log

Rev 11 Rev 46
Line 12... Line 12...
// Creator:     Dan Gisselquist, Ph.D.
// Creator:     Dan Gisselquist, Ph.D.
//              Gisselquist Technology, LLC
//              Gisselquist Technology, LLC
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
// Copyright (C) 2015-2017, Gisselquist Technology, LLC
//
//
// This program is free software (firmware): you can redistribute it and/or
// This program is free software (firmware): you can redistribute it and/or
// modify it under the terms of  the GNU General Public License as published
// modify it under the terms of  the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License, or (at
// by the Free Software Foundation, either version 3 of the License, or (at
// your option) any later version.
// your option) any later version.
Line 25... Line 25...
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for more details.
// for more details.
//
//
// You should have received a copy of the GNU General Public License along
// You should have received a copy of the GNU General Public License along
// with this program.  (It's in the $(ROOT)/doc directory, run make with no
// with this program.  (It's in the $(ROOT)/doc directory.  Run make with no
// target there if the PDF file isn't present.)  If not, see
// target there if the PDF file isn't present.)  If not, see
// <http://www.gnu.org/licenses/> for a copy.
// <http://www.gnu.org/licenses/> for a copy.
//
//
// License:     GPL, v3, as defined and found on www.gnu.org,
// License:     GPL, v3, as defined and found on www.gnu.org,
//              http://www.gnu.org/licenses/gpl.html
//              http://www.gnu.org/licenses/gpl.html
Line 75... Line 75...
                { l_dstb_n, l_astb_n, l_write_n } <= { r_dstb_n, r_astb_n, r_write_n };
                { l_dstb_n, l_astb_n, l_write_n } <= { r_dstb_n, r_astb_n, r_write_n };
        end
        end
 
 
        reg     [7:0]    addr;
        reg     [7:0]    addr;
        wire    astb, dstb, w_write;
        wire    astb, dstb, w_write;
        assign  astb = (~r_astb_n)&&(l_astb_n);
        assign  astb = (!r_astb_n)&&(l_astb_n);
        assign  dstb = (~r_dstb_n)&&(l_dstb_n);
        assign  dstb = (!r_dstb_n)&&(l_dstb_n);
        assign  w_write= (~r_write_n);
        assign  w_write= (!r_write_n);
 
 
 
 
        initial addr = 8'h00;
        initial addr = 8'h00;
        initial o_rx_stb = 1'b0;
        initial o_rx_stb = 1'b0;
        always @(posedge i_clk)
        always @(posedge i_clk)
Line 100... Line 100...
        // Much as I hate to use signals that have not been synchronized with a 
        // Much as I hate to use signals that have not been synchronized with a 
        // two clock transfer, this line needs to be brought low within 10ms
        // two clock transfer, this line needs to be brought low within 10ms
        // (less than one clock) of when the strobe lines are brought low, and
        // (less than one clock) of when the strobe lines are brought low, and
        // raised high again within 10 ms of when the strobe lines are raised
        // raised high again within 10 ms of when the strobe lines are raised
        // again.
        // again.
        assign  o_wait = ((~i_dstb_n)||(~i_astb_n));
        assign  o_wait = ((!i_dstb_n)||(!i_astb_n));
 
 
        // For one clock, following any read from address zero, we allow the
        // For one clock, following any read from address zero, we allow the
        // port to write one new byte into our interface.  This works because
        // port to write one new byte into our interface.  This works because
        // the interface will guarantee that the strobe signals are inactive
        // the interface will guarantee that the strobe signals are inactive
        // (high) for at least 40ns before attempting a new transaction.
        // (high) for at least 40ns before attempting a new transaction.

powered by: WebSVN 2.1.0

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