Public
Edited
Dec 23, 2023
1 fork
Insert cell
Insert cell
wdWrapper({
config: {skin: 'default', marks: true,
hbounds: [9,15.5],
hscale:1 ,
fit2pane: true,
customStyle: '.tlStartAlign{text-anchor:start}.tlEndAlign{text-anchor:end}'
},
head: {tick: 0},
edge: ['a-h','b-g','c-f','d-e'],
signal: [
{},
{name: 'CLK', wave: '101010101010100',
node: '.....a....b...c..d', phase: 0.2},
{name: 'CLKNP', wave: '01010101010100', phase: 0},
{name: 'CLK', wave: '1101010101010100', phase: -0.5},
{name: 'CLKNP', wave: '001010101010100', phase: 0},
{name: 'DTA', wave: '8.2.3.4.5.6.7.8.2.3',
node: '..e.......f....g.h', phase: 0},
{name: 'DTAP', wave: '8.2.3.4.5.6.7....', phase: 2.15},
{name: 'DTAM', wave: '8.2.3.4.5.6.7....8', phase: -1},
{name: 'pwTest', wave: ['pw', {d: 'M 0 0 2 1 3 0 5 1 5.5 0 7 1 ' +
'9.5 0 10 0 10 0.5 11 0.5 11 1 12 1 12 0.5 14 0.5 14 0 15 0 15 .5 ' +
'15.5 .5 15.5 1 16.5 1 16.5 0.5 18 0.5 18 1 19 1'}]},
{name: 'tlTest', wave: [
'tl', {coords: [1,0], text: 'tl @ 1,0'},
'tl', {coords: [3.5,0.75], text: 'tl @ 3.5,0.75'},
'tl', {coords: [6.75,0], text: 'tl @ 6.75,0 intruding into hbounds territory'},
'tl', {coords: [9,1], text: 'tl start aligned @ 9,1', tlClass: 'tlStartAlign'},
'tl', {coords: [10,0], text: 'tl @ 10,0'},
'tl', {coords: [12.5,0.5], text: 'tl @ hbounds midpoint', avoidBBox: true },
'tl', {coords: [16,0], text: 'tl end aligned @ 16,0',tlClass: 'tlEndAlign'},
'tl', {coords: [16.5,1], text: 'tl @ 16.5,1'},
// With hbounds set to 16, the last tl is within the extra brick budget
// However, the default middle anchor for the tl will not show its full
// rendering due to the clipping for the hbounds.
// This is to demonstrate that any tl will get rendered as long as it is
// within the computed hbounds limit, and it is the end-user responsibility
// to properly start-align or end-align any text labels falling within the
// hbounds window
] },
{},
]
}
,2) // third image on the page
Insert cell
wdWrapper({
config: {skin: 'default', marks: true,
hbounds: [9,16],
hscale:1 ,
fit2pane: true,
customStyle: '.tlStartAlign{text-anchor:start}.tlEndAlign{text-anchor:end}'
},
head: {tick: 0},
edge: ['a-h','b-g','c-f','d-e'],
signal: [
{},
{name: 'CLK', wave: '101010101010100',
node: '.....a....b...c..d', phase: 0.2},
{name: 'CLKNP', wave: '01010101010100', phase: 0},
{name: 'CLK', wave: '1101010101010100', phase: -0.5},
{name: 'CLKNP', wave: '001010101010100', phase: 0},
{name: 'DTA', wave: '8.2.3.4.5.6.7.8.2.3',
node: '..e.......f....g.h', phase: 0},
{name: 'DTAP', wave: '8.2.3.4.5.6.7....', phase: 2.15},
{name: 'DTAM', wave: '8.2.3.4.5.6.7....8', phase: -1},
{name: 'pwTest', wave: ['pw', {d: 'M 0 0 2 1 3 0 5 1 5.5 0 7 1 ' +
'9.5 0 10 0 10 0.5 11 0.5 11 1 12 1 12 0.5 14 0.5 14 0 15 0 15 .5 ' +
'15.5 .5 15.5 1 16.5 1 16.5 0.5 18 0.5 18 1 19 1'}]},
{name: 'tlTest', wave: [
'tl', {coords: [1,0], text: 'tl @ 1,0'},
'tl', {coords: [3.5,0.75], text: 'tl @ 3.5,0.75'},
'tl', {coords: [6.75,0], text: 'tl @ 6.75,0 intruding into hbounds territory'},
'tl', {coords: [9,1], text: 'tl start aligned @ 9,1', tlClass: 'tlStartAlign'},
'tl', {coords: [10,0], text: 'tl @ 10,0'},
'tl', {coords: [12.5,0.5], text: 'tl @ hbounds midpoint', avoidBBox: true },
'tl', {coords: [16,0], text: 'tl end aligned @ 16,0',tlClass: 'tlEndAlign'},
'tl', {coords: [16.5,1], text: 'tl @ 16.5,1'},
// With hbounds set to 16, the last tl is within the extra brick budget
// However, the default middle anchor for the tl will not show its full
// rendering due to the clipping for the hbounds.
// This is to demonstrate that any tl will get rendered as long as it is
// within the computed hbounds limit, and it is the end-user responsibility
// to properly start-align or end-align any text labels falling within the
// hbounds window
] },
{},
]
}
,1) // second image on the page
Insert cell
wdWrapper({
config: {skin: 'default', marks: true,
//hbounds: [9,15.5],
hscale:1 ,
fit2pane: true,
customStyle: '.tlStartAlign{text-anchor:start}.tlEndAlign{text-anchor:end}'
},
head: {tick: 0},
edge: ['a-h','b-g','c-f','d-e'],
signal: [
{},
{name: 'CLK', wave: '101010101010100',
node: '.....a....b...c..d', phase: 0.2},
{name: 'CLKNP', wave: '01010101010100', phase: 0},
{name: 'CLK', wave: '1101010101010100', phase: -0.5},
{name: 'CLKNP', wave: '001010101010100', phase: 0},
{name: 'DTA', wave: '8.2.3.4.5.6.7.8.2.3',
node: '..e.......f....g.h', phase: 0},
{name: 'DTAP', wave: '8.2.3.4.5.6.7....', phase: 2.15},
{name: 'DTAM', wave: '8.2.3.4.5.6.7....8', phase: -1},
{name: 'pwTest', wave: ['pw', {d: 'M 0 0 2 1 3 0 5 1 5.5 0 7 1 ' +
'9.5 0 10 0 10 0.5 11 0.5 11 1 12 1 12 0.5 14 0.5 14 0 15 0 15 .5 ' +
'15.5 .5 15.5 1 16.5 1 16.5 0.5 18 0.5 18 1 19 1'}]},
{name: 'tlTest', wave: [
'tl', {coords: [1,0], text: 'tl @ 1,0'},
'tl', {coords: [3.5,0.75], text: 'tl @ 3.5,0.75'},
'tl', {coords: [6.75,0], text: 'tl @ 6.75,0 intruding into hbounds territory'},
'tl', {coords: [9,1], text: 'tl start aligned @ 9,1', tlClass: 'tlStartAlign'},
'tl', {coords: [10,0], text: 'tl @ 10,0'},
'tl', {coords: [12.5,0.5], text: 'tl @ hbounds midpoint', avoidBBox: true },
'tl', {coords: [16,0], text: 'tl end aligned @ 16,0',tlClass: 'tlEndAlign'},
'tl', {coords: [16.5,1], text: 'tl @ 16.5,1'},
// With hbounds set to 16, the last tl is within the extra brick budget
// However, the default middle anchor for the tl will not show its full
// rendering due to the clipping for the hbounds.
// This is to demonstrate that any tl will get rendered as long as it is
// within the computed hbounds limit, and it is the end-user responsibility
// to properly start-align or end-align any text labels falling within the
// hbounds window
] },
{},
]
}
,0)
Insert cell
wdWrapper = (() => {
wavedrom.waveSkin = window.WaveSkin ;
return (obj,i) => {
const actSVG = wavedrom.onml.stringify(wavedrom.renderAny(i, obj, wavedrom.waveSkin));
const parser = new DOMParser();
const actSVGForImg = parser.parseFromString(actSVG,'image/svg+xml').firstChild;
let ser = new XMLSerializer();
let imgt = document.createElement('img');
const svgAsImgString = encodeURIComponent(ser.serializeToString(actSVGForImg));
imgt.src = `data:image/svg+xml;utf8,${svgAsImgString}` ;
imgt.style = 'width:100%;height:100%;' ;
return imgt ;
}
})();
Insert cell
wd = (() => {
wavedrom.waveSkin = window.WaveSkin ;
return (obj,i) => html`${wavedrom.onml.stringify(wavedrom.renderAny(i, obj, wavedrom.waveSkin))}`
})();
Insert cell
wavedrom = (await require(await FileAttachment("wavedrom.unpkg.min.js").url()));
Insert cell
(await require(await FileAttachment("default.js").url())).catch ( () => {} );
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more