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
TOP_MODULE=oneshottmr_sim | |
OUT_FILE=test.out | |
# compile | |
iverilog -g2012 \ | |
-o ${OUT_FILE} \ | |
-s ${TOP_MODULE} ./scenario.sv ../src/oneshottmr.v | |
# ./oneshottmr_orig.v | |
# ../src/oneshottmr.v |
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
////////////////////////////////////////////////////////////// | |
// module :oneshottmr_sim | |
///////////////////////////////////////////////////////////// | |
`timescale 1ns/1ps | |
module oneshottmr_sim; | |
// Create clock | |
parameter CLK_E_1MHz = 1000; // ns |
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
// Verilog one-shot counter module | |
module oneshottmr | |
( | |
input clk, | |
input reset_n, | |
input trigger, | |
output reg q_n | |
); |
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
[ | |
[ | |
{ | |
"t": "#000000\n\n#0a0000" | |
}, | |
"o\n+/-\nPara\nSS\nL MGN", | |
{ | |
"t": "#000000", | |
"a": 5 | |
}, |
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
{ | |
Online Pascal Compiler.Code, Compile, | |
Run and Debug Pascal program online.Write your code in this editor and | |
press "Run" button to execute it.} | |
program asciiart; | |
var | |
x, y, i, i2, flag:integer; |
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
--- hex2bin/libcrc.h 2023-05-21 01:35:20.711215991 +0100 | |
+++ hex2bin.new/libcrc.h 2023-05-21 01:21:23.359661817 +0100 | |
@@ -24,7 +24,7 @@ | |
#ifndef _LIBCRC_H_ | |
#define _LIBCRC_H_ | |
-void *crc_table; | |
+extern void *crc_table; | |
void init_crc8_normal_tab(uint8_t polynom); |
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
*** | |
* PIA - CA1 Interrupt | |
* | |
* RyuStudio Nov. 2022 | |
*** | |
* | |
* Lambda-2022 PIA Adrs | |
p0da equ $f008 ; PIA0 DA | |
p0ca equ p0da+1 ; PIA0 CA | |
p0db equ p0da+2 ; PIA0 DB |
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
*** | |
* PIA - Blink All ports | |
* | |
* RyuStudio Nov. 2022 | |
*** | |
* | |
* Lambda-2022 PIA Adrs | |
p0da equ $f008 ; PIA0 DA | |
p0ca equ p0da+1 ; PIA0 CA | |
p0db equ p0da+2 ; PIA0 DB |
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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"windows": { | |
"options": { | |
"shell": { | |
"executable": "cmd.exe", | |
"args": [ | |
"/d", "/c" |
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
void displayHex(unsigned int d0){ | |
(d0 & 0x0001)?digitalWrite(2, HIGH):digitalWrite(2, LOW); | |
(d0 & 0x0002)?digitalWrite(3, HIGH):digitalWrite(3, LOW); | |
(d0 & 0x0004)?digitalWrite(4, HIGH):digitalWrite(4, LOW); | |
(d0 & 0x0008)?digitalWrite(5, HIGH):digitalWrite(5, LOW); | |
digitalWrite(6, LOW); | |
digitalWrite(6, HIGH); // data latched | |
} | |
unsigned int data=0; |
NewerOlder